The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Protection against hotlinking  (Read 4740 times)

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Protection against hotlinking
« on: January 06, 2009, 05:44:46 PM »

Code: [Select]
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
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 833
Re: Protection against hotlinking
« Reply #1 on: April 14, 2009, 08:31:32 AM »

I'm lazy,

what does it do?
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 575
Re: Protection against hotlinking
« Reply #2 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)
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13