Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-15-2004, 10:31 AM   #1
xxxdesign-net
My hips don't lie
 
Industry Role:
Join Date: Nov 2002
Posts: 10,129
.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 ...
xxxdesign-net is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 11:01 AM   #2
jchennav
Registered User
 
Join Date: May 2003
Location: Orange County, CA
Posts: 72
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...

__________________

Last edited by jchennav; 07-15-2004 at 11:04 AM..
jchennav is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 11:06 AM   #3
David!
By the wrath of Agamemnon
 
David!'s Avatar
 
Industry Role:
Join Date: Apr 2004
Location: Miami
Posts: 6,501
Very nice reply jchennav
__________________
.
David! is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 11:15 AM   #4
xxxdesign-net
My hips don't lie
 
Industry Role:
Join Date: Nov 2002
Posts: 10,129
thanks
xxxdesign-net is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 11:16 AM   #5
Aquarius
Confirmed User
 
Join Date: May 2004
Location: Mom's basement
Posts: 4,754
Here is another guide to .htaccess in case you need it.

http://wsabstract.com/howto/htaccess.shtml
Aquarius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 04:33 PM   #6
xxxdesign-net
My hips don't lie
 
Industry Role:
Join Date: Nov 2002
Posts: 10,129
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:32 PM   #7
xxxdesign-net
My hips don't lie
 
Industry Role:
Join Date: Nov 2002
Posts: 10,129
bump
xxxdesign-net is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:35 PM   #8
sickkittens
I am a meat popsicle.
 
Join Date: Jul 2002
Posts: 25,100
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...

Stop posting pictures of my wife.
__________________

HIGHEST PAYOUTS FOR NO-CONSOLE TOURS IN THE ENTIRE INDUSTRY!

THIS SIG CAN BE YOURS FOR $200 - ICQ: 78881543
sickkittens is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:57 PM   #9
Paul Waters
Confirmed User
 
Paul Waters's Avatar
 
Join Date: Mar 2003
Location: Toronto, Ontario
Posts: 4,402
Quote:
Originally posted by sickkittens
Stop posting pictures of my wife.
Stop posting pictures of my mistress!

__________________


Paul
Paul Waters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:57 PM   #10
Aquarius
Confirmed User
 
Join Date: May 2004
Location: Mom's basement
Posts: 4,754
Quote:
Originally posted by Paul Waters
Stop posting pictures of my mistress!

Aquarius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 05:58 PM   #11
dropped9
Registered User
 
dropped9's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Your moms box
Posts: 26,727
hmmm they make a thing called google...ever hear of it?
dropped9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 06:01 PM   #12
Corleone
C.R.E.A.M
 
Industry Role:
Join Date: Apr 2003
Posts: 15,262
http://www.htmlbasix.com/disablehotlinking.shtml

usefull link
Corleone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 06:56 PM   #13
xxxdesign-net
My hips don't lie
 
Industry Role:
Join Date: Nov 2002
Posts: 10,129
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..
xxxdesign-net is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 07:08 PM   #14
Tom_PMs
Confirmed User
 
Join Date: Jun 2004
Posts: 2,049
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.
__________________

You've read it, you can't unread it.
Tom_PMs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.