Hi, I was wondering whether it's possible to specify which domains you would like to prevent from hotlinking images on your site. I know how to specify which sites I want to allow but as I only want to block one domain I need to know how to do it the other way around.
hello if you are running apache add this in htaccess RewriteCond %{HTTP_REFERER} ^h ttp://(.+\.)?block2\.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^h ttp://(.+\.)?block1\.com/ [NC] RewriteRule .*\.(png|jpeg|jpg)$ h ttp://.site.com/error.gif [L]