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.. how can I replace the hotlinked images by an image of my choice? (https://gfy.com/showthread.php?t=326388)

xxxdesign-net 07-15-2004 10:31 AM

.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 ...

jchennav 07-15-2004 11:01 AM

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

David! 07-15-2004 11:06 AM

Very nice reply jchennav :thumbsup :thumbsup

xxxdesign-net 07-15-2004 11:15 AM

thanks :thumbsup

Aquarius 07-15-2004 11:16 AM

Here is another guide to .htaccess in case you need it.

http://wsabstract.com/howto/htaccess.shtml

xxxdesign-net 07-15-2004 04:33 PM

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..?

xxxdesign-net 07-15-2004 05:32 PM

bump

sickkittens 07-15-2004 05:35 PM

Quote:

Originally posted by jchennav
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

Stop posting pictures of my wife.

Paul Waters 07-15-2004 05:57 PM

Quote:

Originally posted by sickkittens
Stop posting pictures of my wife.
Stop posting pictures of my mistress!

:1orglaugh :1orglaugh :1orglaugh

Aquarius 07-15-2004 05:57 PM

Quote:

Originally posted by Paul Waters
Stop posting pictures of my mistress!

:1orglaugh :1orglaugh :1orglaugh

:1orglaugh

dropped9 07-15-2004 05:58 PM

hmmm they make a thing called google...ever hear of it?

Corleone 07-15-2004 06:01 PM

http://www.htmlbasix.com/disablehotlinking.shtml

usefull link :thumbsup

xxxdesign-net 07-15-2004 06:56 PM

Quote:

Originally posted by Headless
hmmm they make a thing called google...ever hear of it?
I tried but didnt find anything.. but thanks anyway.. Hows Headlessthumbs.com btw.. heard it reached 3,000 daily visits last week.. :thumbsup

Tom_PMs 07-15-2004 07:08 PM

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