Skip to content

Instantly share code, notes, and snippets.

@jamescridland
Created April 9, 2012 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamescridland/2344965 to your computer and use it in GitHub Desktop.
Save jamescridland/2344965 to your computer and use it in GitHub Desktop.
Stop people nicking .png images from your server
#put this bit in your .htaccess file
RewriteCond %{HTTP_REFERER} ^http://(www\.)?godalmingtownfc.co.uk.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?mallulive.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?allegro.pl.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?lawiki.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?pcworld.com.*$ [NC]
ReWriteRule .*\.png$ - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment