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 12-04-2004, 02:55 PM   #1
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
How do i block fusker with .htaccess?

^---
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:10 PM   #2
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
order allow,deny
deny from 123.45.6.7
deny from 012.34.5.
deny from fusker.whoever.com
deny from .whoever.com
allow from all


will deny access for the full IP shown, the partial IP mask (012.34.5.*), the sub domain shown and anything at whoever.com

I don't know if this will work:

deny from fusker

Last edited by fusionx; 12-04-2004 at 03:12 PM..
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:10 PM   #3
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Awesome, thanks!!
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:11 PM   #4
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Uhm, does this also stop hotlinking of pictures?
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:14 PM   #5
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
I edited the post - added "." in front of whoever.com

Well, that will stop those entries from hotlinking pics :-)

Anyone from those entries won't see a damn thing.

Of course, if they are using tools that let them spoof the referer, nothing will work.
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:19 PM   #6
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?18pluspics.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.130.168.161(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]


%haha123; is the oppostie of "}" - the opening bracket.

that stops hotlinking by referer. Change your domain and IP and it should work exactly as is.

Last edited by fusionx; 12-04-2004 at 03:21 PM..
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:20 PM   #7
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally posted by fusionx
I edited the post - added "." in front of whoever.com

Well, that will stop those entries from hotlinking pics :-)

Anyone from those entries won't see a damn thing.

Of course, if they are using tools that let them spoof the referer, nothing will work.
Cant i redirect those hotlink requests to a popup hell? Or a goatse or something?
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:21 PM   #8
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally posted by fusionx
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?18pluspics.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.130.168.161(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]


that stops hotlinking by referer. Change your domain and IP and it should work exactly as is.
I dont want to disable hotlinking completely, just from Fusker...so i use the first code you posted right?
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:22 PM   #9
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Quote:
Originally posted by Battuss
Cant i redirect those hotlink requests to a popup hell? Or a goatse or something?
Use the hotlink prevention example and change the rewrite rule like this:

RewriteRule \.(gif|jpg|jpeg|bmp)$ http://www.mydomain.com/nasty.gif [R,L]

Last edited by fusionx; 12-04-2004 at 03:24 PM..
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:26 PM   #10
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally posted by fusionx
Use the hotlink prevention example and change the rewrite rule like this:

RewriteRule \.(gif|jpg|jpeg|bmp)$ http://www.mydomain.com/nasty.gif [R,L]
You confuse me. Could you please just post the code i need to use....sorry.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:30 PM   #11
49thParallel
So Fucking Banned
 
Join Date: Jul 2002
Posts: 1,197
Here's how I do it:

Options +SymLinksIfOwnerMatch
RewriteEngine on

RewriteCond %{HTTP_REFERER} .*.fusker* [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/images/hotlink.gif [R,NC]

Works like a charm for me.

P.S. And like another post in this thread %haha123; = the opposite of }

Last edited by 49thParallel; 12-04-2004 at 03:32 PM..
49thParallel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:35 PM   #12
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
{
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:36 PM   #13
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Thanks dude, gonna try it out now.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:36 PM   #14
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
I added 49thParallel's to mine to show a full example. In this one, if it's from any fusker site, deny it any return hotlink.gif. Otherwise, just drop the request.

RewriteEngine On
RewriteCond {HTTP_REFERER} .*.fusker* [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$
http://www.yourdomain.com/images/hotlink.gif [R,NC]

RewriteCond {HTTP_REFERER} !^$
RewriteCond {HTTP_REFERER} !^http://(www\.)?18pluspics.com(/)?.*$ [NC]
RewriteCond {HTTP_REFERER} !^http://216.130.168.161(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]

The Options part in his post is dependent on the server config. It will NOT hurt anything to have it there. You just may not need it.
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:38 PM   #15
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
damn it.. I keep forgetting to turn off "automatically parse urls". I'm not gonna edit the last one
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:45 PM   #16
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Its not working?? I copied it directly from here.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:47 PM   #17
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Actually it is, it just wont replace it with my pic of choice.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:50 PM   #18
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Make sure you have the leading ".*" after "RewriteRule" - the board messed up some formatting when I let it parse the urls....

RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/images/hotlink.gif [R,NC]
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 03:53 PM   #19
49thParallel
So Fucking Banned
 
Join Date: Jul 2002
Posts: 1,197
Quote:
Originally posted by Battuss
Actually it is, it just wont replace it with my pic of choice.
Couple of possibilities:

a) Did you put the image in a "image" directory or just in the root html directory. (Sorry for asking..but it's a common mistake)

b) Try adding back in the Options code from my example. fusionx made a good call when he said that you might not need it. But, your server configuration may require it.

c) Make sure you follow the same order as shown by fusionx. If you switch the code that "denies all" before the fusker code, then it will take priority and no image will be shown.

d) Oh yah, and make sure that you replace "yourdomain" with the actual name of your domain.


Hope that helps.

Last edited by 49thParallel; 12-04-2004 at 03:54 PM..
49thParallel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:00 PM   #20
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Ok, whats wrong with this:

RewriteEngine On
RewriteCond {HTTP_REFERER} .*.fusker* [NC]
RewriteRule .*\.(gif|jpg|bmp)$
http://www.teenportals.com/images/lars5.jpeg [R,NC]
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:05 PM   #21
49thParallel
So Fucking Banned
 
Join Date: Jul 2002
Posts: 1,197
Not sure if the board is doing this, or if it's the way you have it in your .htaccess...

make sure this is all on one line
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/images/hotlink.gif [R,NC]

Plus, does the image you are now substituting have a "jpeg" or "jpg" extension? I noticed in your example, it shows "jpeg".

If you normally use this file extension, then you will also want to be sure to add "jpeg" into the code, as shown by my example. Otherwise, these files will be free to be hotlinked at will.

Last edited by 49thParallel; 12-04-2004 at 04:09 PM..
49thParallel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:07 PM   #22
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
only thing I can see - if they are hotlinking to .jpeg files, you'll need to add that to the list

(jpg|gif|bmp|jpeg)

etc...
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:11 PM   #23
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
It just wont work man...im gonna ask my hosting guy when hes online....thanks for the help, appreciate it.
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:21 PM   #24
john FVC
Confirmed User
 
john FVC's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Europe
Posts: 671
Make sure you clear your cache out before checking it. I have been caught out before with this when blocking sites with htaccess
__________________


Convert with your MILF & Mature traffic.

CCBill 50% -60% Revshare
john FVC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:30 PM   #25
Diligent
Confirmed User
 
Diligent's Avatar
 
Join Date: Aug 2003
Location: Hoy Suecia, mañana Nirvana
Posts: 1,594
Hey guys, I'm no expert on this myself but I see You're not noticing one thing:

The board rewrites the opening bracket with this "haha"-shit as we all have noticed...
What You seem to miss is that the "%" sign ISN'T a board rewrite! It's supposed to be in the code!

Line quoted from Battuss' post:
"RewriteCond haha123;HTTP_REFERER} .*.fusker* [NC]"

I'm gonna replace the correct brackets with "[" and "]" here to bypass the boards rewrites, check this out:

"RewriteCond %[HTTP_REFERER] .*.fusker* [NC]"

See what I mean now? The percent-sign SHOULD be there, it's not part of the board rewrite.

Simplier put, the opening equivalent of "}" is rewritten by the board as "haha123;" and not "%haha123;"...
so don't strip out the "%" in Your code!

Do a quote on someone's post with code in it & look carefully...

Cheers!




Edit: for even more simplicity:
all "RewriteCond"-lines should look like this BEFORE the first bracket:

"RewriteCond %"
__________________
~¤~ MORE MONEY ~¤~ VOD? XoD! ~¤~
~¤~ ICQ# 9828 2461 ~¤~


Last edited by Just-Anotha-Mack; 12-04-2004 at 04:34 PM..
Diligent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:31 PM   #26
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Quote:
Originally posted by Just-Anotha-Mack

The board rewrites the opening bracket with this "haha"-shit as we all have noticed...
What You seem to miss is that the "%" sign ISN'T a board rewrite! It's supposed to be in the code!

Cheers!
Good catch! I totally missed that..
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:37 PM   #27
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
http://fusker.lewww.com/index.php?li...pecial=preview
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:40 PM   #28
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Quote:
Originally posted by Battuss
http://fusker.lewww.com/index.php?li...pecial=preview
Beautiful!!!

They won't bother you again..
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-04-2004, 04:49 PM   #29
Diligent
Confirmed User
 
Diligent's Avatar
 
Join Date: Aug 2003
Location: Hoy Suecia, mañana Nirvana
Posts: 1,594
Haha, nice!

I see it worked out finally
__________________
~¤~ MORE MONEY ~¤~ VOD? XoD! ~¤~
~¤~ ICQ# 9828 2461 ~¤~

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