The Apache Haus Forum

Forum Topics => Webmaster Tools, Tips and Tricks => Topic started by: mario on January 06, 2009, 05:44:46 PM

Title: Protection against hotlinking
Post by: mario on January 06, 2009, 05:44:46 PM

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?your-domain\.tld(/.*)?$ [NC]
RewriteRule \.(gif|jpe?g|png|php|GIF|JPE?G|PNG|PHP)$ - [F]


maybe helpfull
Title: Re: Protection against hotlinking
Post by: Gregg on April 14, 2009, 08:31:32 AM
I'm lazy,

what does it do?
Title: Re: Protection against hotlinking
Post by: mario on April 14, 2009, 02:58:44 PM
if someone create a link directly to the picture or tries to include the picture in his page apache does not allow that and redirects to your front page (your-domain.tld)