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)
-   -   htaccess help please (https://gfy.com/showthread.php?t=131089)

X37375787 05-04-2003 09:10 PM

htaccess help please
 
how can I achieve that a hotlinked pic will be replaced by a predetermined other one?

This is what I got, it doesn't seem to work though... :(


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://blah1.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blah1.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://blah1.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blah1.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx:80.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.blah2.com/hotlink.gif


Thanks....

X37375787 05-04-2003 09:11 PM

blah2.com is not affected by this htaccess...

The Truth Hurts 05-04-2003 09:14 PM

good question, i have the same basic layout, and instead of the alternate pic, i just get the red x.

X37375787 05-04-2003 09:18 PM

the problem is that I can stil hotlink like a champ...

wtf?

The Truth Hurts 05-04-2003 09:22 PM

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domain.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.net/.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.net/hotlink.gif [R,L]


one i'm using...
protection works, replacement image doesn't.

X37375787 05-04-2003 09:24 PM

I noticed I was missing the [R,L] ... :)


Your problem is that you probably have the hotlink image in the protected folder itself. Move it to another unprotected domain and change the htaccess accordingly.

The Truth Hurts 05-04-2003 09:27 PM

cool... i'll give it a shot.

The Truth Hurts 05-04-2003 09:33 PM

good call, works now ; ))

thanks.

X37375787 05-04-2003 10:16 PM

Quote:

Originally posted by The Truth Hurts
good call, works now ; ))

thanks.


np


All times are GMT -7. The time now is 01:27 AM.

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