ImpressCMS proudly uses SourceForge
ImpressCMS on Ohloh.net
[Index :: This page]  
Tags: Howto   htaccess   Image   leeching   tip  

Preventing Image Leaching

(Tip supplied by Sublime, from this post)

In the below htaccess entries, add whatever website you want to allow. Follow the same way as yoursite.com and impresscms.org are added.

RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+.)?yoursite.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://(.+.)?impresscms.org/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*.(jpe?g|png|gif|bmp)$ /images/goaway.gif[L]

Last modified on 2010/11/28 by fiammybe
This page was created on 2010/11/11 by skenow
This page has been viewed 1515 time(s)

Comments
The comments are owned by the poster. We aren't responsible for their content.
ImpressCMS proudly uses SourceForge
ImpressCMS on Ohloh.net