Disable Hotlinking

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.
facebook-profile-picture

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.
facebook-profile-picture

Latest posts by Stephan Pringle (see all)

facebook-profile-picture

Stephan Pringle

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.