![]() |
.htaccess.. how can I replace the hotlinked images by an image of my choice?
Anyone knows how to do that..? want to replace the hotlinked images by an image of my choice...
Time to make some money out of the thief running Fusker.com ... |
The instructions for doing this can be found here:
http://altlab.com/htaccess_tutorial.html I've set up the following image to display properly if it's accessed from www.gofuckyourself.com and from my site but it will display a different image for those fuskers... http://www.fobpro.com/photos/ela2004...a2004f1545.jpg |
Very nice reply jchennav :thumbsup :thumbsup
|
thanks :thumbsup
|
|
ok this code is working well..
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?xxxxxxxx.com/.*$ [NC] RewriteRule \.(gif|jpg)$ http://www.xxxxxxxx.com/images/nohotlink.jpg [R,L] but instead of blocking all domains that hotlink. except mine.. I would like to be able to block only specific ones... otherwise, it seems like it may block some legitimate traffic such as users behind proxies or privacy firewalls.. Anyone knows how to modify the code above and include a command to block certain domains..? |
bump
|
Quote:
|
Quote:
:1orglaugh :1orglaugh :1orglaugh |
Quote:
|
hmmm they make a thing called google...ever hear of it?
|
|
Quote:
|
Well, you could try changing this:
RewriteCond %haha123;HTTP_REFERER} !^http://(www\.)?xxxxxxxx.com/.*$ [NC] to this: RewriteCond %haha123;HTTP_REFERER} ^http://(www\.)?domaintoredirect.com/.*$ [NC] the "!" stands for NOT, so in the original, it's basically saying if the http_referrer is NOT a url beginning with http://, and maybe also the www., followed by a number of characters which contain xxxxxxxx.com/, plus any other characters to the end of the url, (non case sensitive), then proceed to rewriterule. So removing the "!" would remove the NOT, and change the condition from checking if the url is NOT your domain (and redirecting if it isnt), to checking if the url IS from the offending domain (and redirecting if it is).. Test rewriting with care though, always. |
All times are GMT -7. The time now is 03:59 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123