Do you need to disable hotlinking to your sites and server? Here is a sample (that I actually deployed) with my primary domain, domain alias and domain IP address.
# [ CP Global Hotlinking – Open ]
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?69.48.152.78/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?nyhtml.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?stephanpringle.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|png|js|css|ico)$ – [F]<Files .htaccess>
order allow,deny
deny from all
</Files>
# [ CP Global Hotlinking – Close ]
Special thanks to the folks over at Dynamic Drive for their banning generator.
The following two tabs change content below.
Stephan Pringle
Technology Support Specialist at Sipylus
About The Author: Stephan Pringle is an Information Technology Support Specialist. He covers hardware and software and provides tips for you to troubleshoot and repair issues on your own. In his spare time, he writes articles about the State of New York on his Hackintosh and HackBook and that has helped him to become the top contributor of the New York City section of Yahoo! Answers.