Skip navigation.
Home

PHP

PHP is a server based scripting language primarily used in web development.

How To Stop Hotlinking Bandwidth Thieves

I'm tired of those (.ru) tutorial websites and forums that translate AcmeTutorials.com content and hotlink our images.

I'm going to slap this .htaccess on them. From now on bandwith image thieves will see something they don't like.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*\.)?acmetutorials.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*\.)?motorology.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*\.)?drupal.org [NC]
RewriteRule \.(jpeg|jpg|gif|png)$ http://example.org/bad.jpg [NC,R,L]

Thanks goes to blamcast.net for the .htaccess rule

Syndicate content

Your Ad Here