Do you need to disable hotlinking to your sites and server? Here is a sample (that I actually deployed) with my primary domain, alias and IP address.
# [ CP Global Hotlinking – Open ]
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?64.131.82.167/.*$ [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]
# [ 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
Chief Executive Officer at Sipylus
About The Author: Stephan Pringle is an Information Technology 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.
Latest posts by Stephan Pringle (see all)
- The New Microsoft Edge is Old - Friday, January 15, 2021