PDA

View Full Version : that ole' Htaccess & Hotlinking Thing!


DJilla
2006-11-29, 12:46 PM
This is the url of the hotlining protection test I am using:

http://coldlink.com/htm/tool.htm

This is the url of the sample jpg I'm using to test:

http://www.triplexxx.info/featured/galleries/asian/asian-slut-fh1006/fs/asian-sex-03.jpg

As you should also see, hotlinking goes well to my replacement jpg in most cases EXCEPT the window pop. This is also the same case I'm having with a hotlinker who is loading my pages in a frame. I can't bust the frame because he is loading pages I've submitted already and can't add code to.

This is my rewrite:

RewriteRule \.(gif|jpg)$ http://www.triplexxx.info/hotlinks/comeover.jpg [NC,R,L]

Anybody know how can I stop him?

oast
2006-12-01, 03:00 PM
Assuming he does not send you any legitimate hits, block his domain from sending all referrers in your .htaccess

RewriteCond %{HTTP_REFERER} thisguysucks\.com [NC]
RewriteRule .* - [F,L]

You could be REAL nasty and have another page load in the frame instead
RewriteCond %{HTTP_REFERER} thisguysucks\.com [NC]
RewriteRule .* http://anothersitethatsucks.com/ [R,L]

virgohippy
2006-12-01, 07:30 PM
You could be REAL nasty and have another page load in the frame instead

Like a FPA linked to a program of your choice. |thumb

oast
2006-12-01, 08:12 PM
Like a FPA linked to a program of your choice. |thumbThat was my thought, but I left it open so as not to influence anyone as that wouldn't be a nice thing to do to someone who obviously admires your work! |jester|

virgohippy
2006-12-01, 09:11 PM
That was my thought, but I left it open so as not to influence anyone as that wouldn't be a nice thing to do to someone who obviously admires your work! |jester|

Hehe... yeah, but I prefer to recieve my flattery in the form of $$$ from happy, horny surfers. ;)

DJilla
2006-12-05, 11:18 AM
Assuming he does not send you any legitimate hits, block his domain from sending all referrers in your .htaccess


Hey O, thanks for the help response and the code. You kinda confirmed what I had suspected needed to be done but was hoping there was a way I could just force my jpg on him through the frame.

Guy's pretty slick, its a Ruskie site that loads in a gallery page and then uses an ssi script to substitute the aff codes so I have to ban him altogether or send him to a "bugger off" page I create. Can't just create another replacement potential sponsor page that he might be able to overwite again with his codes.

If I find that he is on a dedicated IP, is it better/more efficient to block the IP number rather than the domain name?

Happy Holidays
|santa|

oast
2006-12-05, 01:01 PM
was hoping there was a way I could just force my jpg on him through the frame.You can.
RewriteCond %{HTTP_REFERER} thisguysucks\.com [NC]
RewriteRule !fuck-off.jpg /fuck-off.jpg [L]
or lesser bandwidth option would be
RewriteCond %{HTTP_REFERER} thisguysucks\.com [NC]
RewriteRule !fuck-off.html /fuck-off.html [L]
Don't put any links on the page, don't include any graphics or scripts, as that will start getting over-complicated. Just a plain HTML page with a big "This page was stolen from ...., NOW FUCK OFF!" on it will do.
If he looks at his own pages, he will soon get the idea you don't want him stealing your pages.

If I find that he is on a dedicated IP, is it better/more efficient to block the IP number rather than the domain name?I don't think it will make a lot of difference, and will save you checking each day if you use the domain name. I'm sure Sparky will correct me if I'm wrong :)

RamCharger
2006-12-26, 10:53 AM
I don't know what backend you're using, but in comus there's an option for redirecting fusker traffic. It's in the mysql settings and labeled "fusker error url." Presently I have mine set to bounce them back to my mainpage. I'd imagine that pretty much fixes the problem. Also, as an ounce of extra protection I have no cookies redirect toggled on in both epower trader and comus. Anyone see any flaws in how I'm doing things?