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 question (https://gfy.com/showthread.php?t=580765)

dissipate 02-27-2006 12:32 AM

htaccess question
 
Is it possible to redirect hotlinked images to a URL? I have a site hotlinking my images. Now i could just block it to a default image of goatse or somthing, but they're hitting me about 1k times a day, so a redirect would be worth some traffic. Is there any way to do this through htaccess?

Pete-KT 02-27-2006 12:33 AM

no you can not it will just show up as a red x

woj 02-27-2006 12:39 AM

the best you can do is show a different image, like "Visit xyz.com"

BigBen 02-27-2006 12:49 AM

Redirect to a flash file that does a popup?

Or take it down so it 404's and then change the 404 to something that does a pop? Not sure if that would work though.

grumpy 02-27-2006 12:59 AM

http://www.javascriptkit.com/howto/htaccess.shtml

mikeyddddd 02-27-2006 01:44 AM

http://www.we-are-sluts.com/textart/thief.gif

fris 02-27-2006 02:56 AM

http://www.htaccesstools.com

Mike Seth 02-27-2006 05:17 AM

You can do this with a little bit of PHP scripting. Basically, you need to look up the HTTP_REFERER header sent by the client (in PHP it would be typically found in $_SERVER['HTTP_REFERER'] variable). You then normalize the URL and check it against your own domain. If the traffic is coming from outside, you do a redirect. Otherwise you let it in and serve the content


All times are GMT -7. The time now is 05:53 AM.

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