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
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 06-24-2007, 07:20 PM   #1
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
htaccess antihotlinking question

(I don't want to disable hotlinking completely.)

You can block individual sites by using this:

RewriteCond %{HTTP_REFERER} ^http://(.+\.)?site\.com/ [NC]

such as:

RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.lv/ [NC]



but what if I want to block every site that has the text "fusker" anywhere in the url? How do I do that?
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-24-2007, 07:48 PM   #2
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
come on, one of you knows this info. :D
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-24-2007, 08:20 PM   #3
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
one of yous sales short solutions :D
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-24-2007, 08:22 PM   #4
jonesonyou
Confirmed User
 
Join Date: Sep 2003
Location: Lincoln, NE
Posts: 3,853
did you ask google? I have no clue. good luck .
__________________

Completely Real Amateur girls doing awesome things! Signup to promote Nebraskacoeds Today!

Hit me up on ICQ/AIM 473324556/jasonnecoeds for exclusive content to promote with! And any ?'s
jonesonyou is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-24-2007, 08:47 PM   #5
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
+1 to your postcount though, good job! (thanks for the bump )
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-24-2007, 11:01 PM   #6
footmonkey
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Posts: 639
Quote:
Originally Posted by Wolfy View Post
(I don't want to disable hotlinking completely.)

You can block individual sites by using this:

RewriteCond %{HTTP_REFERER} ^http://(.+\.)?site\.com/ [NC]

such as:

RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.lv/ [NC]



but what if I want to block every site that has the text "fusker" anywhere in the url? How do I do that?
Try this...
RewriteCond %{HTTP_REFERER} !^www\.mysite\.com
RewriteCond %{HTTP_REFERER} !^$

1) says only allow referrers that are your own site
2) says don't block if there's no referrer

Hope it helps
footmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 12:37 AM   #7
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
Code:
RewriteCond %{HTTP_REFERER} ^.*fusker.*$ [NC]
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 04:47 AM   #8
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
Originally Posted by darksoul View Post
Code:
RewriteCond %{HTTP_REFERER} ^.*fusker.*$ [NC]

hmmm... just tried it, that didn't work for (example: http://www.milkonya.com/fusker/index.php?lid=36173)
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 04:52 AM   #9
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
Quote:
Originally Posted by Wolfy View Post
hmmm... just tried it, that didn't work for (example: http://www.milkonya.com/fusker/index.php?lid=36173)
I assume your .htaccess is complete ?
ie:
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^.*fusker.*$ [NC]
RewriteRule .*\.(gif|jpg|png) - [F]
should work
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 05:11 AM   #10
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?forum\.phun\.org/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?sexonabanheira\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?photos\.boobdex\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?roberc\.lv/ [NC]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fuskerxp\.com/ [NC]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?midnitecrowproductions\.com/ [NC]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.?/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 05:12 AM   #11
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
oh,
all RewriteCond's except the last one need to have
[NC,OR]
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 05:17 AM   #12
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
also the fusker rule needs another match-anything at the end
^http://(.+\.)?fusker\..*$ [NC]
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 05:29 AM   #13
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
so...


Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?forum\.phun\.org/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?sexonabanheira\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?photos\.boobdex\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?roberc\.lv/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fuskerxp\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?midnitecrowproductions\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\..*$ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]
like that??
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 05:43 AM   #14
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
yes,
and remove the first condition REQUEST_FILENAME ...
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 03:04 PM   #15
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
fuck, now it's disabled hotlinking completely.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 03:30 PM   #16
SCORE Ralph
Confirmed User
 
SCORE Ralph's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Miami, FL
Posts: 2,090
Quote:
Originally Posted by Wolfy View Post
fuck, now it's disabled hotlinking completely.
lol... man i was going to see if i could help but it seems you already tried all I was going to mention.

GL
__________________
GetSCORECash.com | In the Biz Since 1991
Big Tits | Granny & MILFs | Amateurs | Big Booty | Foot Fetish | BBW | Teens
Hosted Embeds | MP4s | RSS Feeds | FHGs | Model Directory
SCORE Ralph is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 07:06 PM   #17
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
appreciate the bump just the same bro
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-25-2007, 08:46 PM   #18
kimzar
Confirmed User
 
Join Date: Mar 2004
Location: Your Mother's Snatch!
Posts: 1,874
bump!
kimzar 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



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.