GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   hotlinking problem using .htaccess - help needed please (https://gfy.com/showthread.php?t=199988)

djmick 11-20-2003 07:11 PM

hotlinking problem using .htaccess - help needed please
 
simple problem, some advice on how to solve this would be much appreciated.

below is the code on my file

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

Hotlink prevention is working but when accessing the main page on both sites all the images are missing.

e.g.

http://mysite.com/ - OK
http://mysite.com - fucked
http://www.mysite.com/ - OK
http://www.mysite.com - fucked

Just when the trailing slash isn't there it's fucked.

Any suggestions?

Thanks

djmick

djmick 11-21-2003 05:55 PM

where r all the tech gurus out there?

somebody must have a solution for me!!!!!!!

djmick

ppk 11-21-2003 08:42 PM

RewriteCond %{HTTP_REFERER} !^http://www.url.one [NC]
RewriteCond %{HTTP_REFERER} !^http://www.url.two [NC]

get rid of the trailing slash


All times are GMT -7. The time now is 09:55 PM.

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