|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
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/ |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: May 2004
Location: South Florida
Posts: 4,134
|
use another .htaccess file in that folder
|
|
|
|
|
|
#3 | |
|
Viva la vulva!
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
|
Quote:
mydomain.com/hotimages/ RewriteCond %{HTTP_REFERER} !^$ lets someone key in the URL |
|
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 5,344
|
I remember now.
there is 1 work I should in the .htaccess in the folder I want to allow hotlinking in , what was it? |
|
|
|