Forum Moderators: phranque
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?site.com(/)?.*$ [NC]
RewriteRule .*\.(gif¦jpg¦jpeg¦bmp)$ [site.com...] [R,NC]
Thank you
Note: there is a space on the first 2 lines after } and the pipes are solid.
Did you flush your browser cache before visiting each of those hotlinking sites?
If not, then your browser will display the images it has cached from your visits to your own site, instead of re-fetching them when referred from the hotlinking site. In this case, your browser will not send the image requests to your server, so your code can have no effect. Always flush your cache before testing.
When testing your code, look at your raw server access logs. You will clearly see the image accesses if your browser does request them, and whether your server response is 200-OK or 403-Forbidden.
If you still have a problem, then contact your host; code doesn't stop working without a reason.
Jim