Options +FollowSymlinks
# Protect Hotlinking
RewriteEngine On
# RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/timetable/class_photo.*php.*$ [nc]
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/timetable/addSeatingPlan.*php.*$ [nc]
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/timetable/showSeatingPlan.*php.*$ [nc]
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/timetable/seatingplan.*php.*$ [nc]
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/timetable/addplan.*php.*$ [nc]
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/attendance/.*php.*$ [nc]
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/seatingplan/.*htm.*$ [nc]
RewriteCond %{HTTP_REFERER} !^http://([^/]+)/schoolportal/seatingplan/.*php.*$ [nc]
RewriteRule .*.(jpg|png)$ ajax-loader.gif [nc]

