GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   anti image hotlinking in .htaccess (https://gfy.com/showthread.php?t=451677)

Zester 04-03-2005 01:24 PM

anti image hotlinking in .htaccess
 
I usally use the following to prevent image hotlinking from my entire site:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]

how to modify the above if I want to allow image hotlinking for a certain folder, lets say:
mydomain.com/hotimages/

MickeyG 04-03-2005 01:51 PM

use another .htaccess file in that folder

mikeyddddd 04-03-2005 01:52 PM

Quote:

Originally Posted by Zester
I usally use the following to prevent image hotlinking from my entire site:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]

how to modify the above if I want to allow image hotlinking for a certain folder, lets say:
mydomain.com/hotimages/

Only put it where you want it:
mydomain.com/hotimages/

RewriteCond %{HTTP_REFERER} !^$
lets someone key in the URL

Zester 04-03-2005 02:10 PM

I remember now.
there is 1 work I should in the .htaccess in the folder I want to allow hotlinking in , what was it?


All times are GMT -7. The time now is 08:28 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123