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?
htaccess question
Collapse
X
-
the best you can do is show a different image, like "Visit xyz.com"Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip ManagerComment
-
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888Comment
-
-
Comment
-
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 contentMike Seth - 274-570-412 <mikeseth at gmail.com>Comment



Comment