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 help (https://gfy.com/showthread.php?t=149706)

emmanuelle 07-04-2003 07:36 AM

htaccess help
 
One of my paysites is getting hammered by password lists. While I am redirecting my 401 & 403 traffic, I would like to keep them off the site entirely since they are sucking up all the free trailers in the free area.
Can somebody please advise me how to redirect this traffic by referral?

Sexzity 07-04-2003 07:45 AM

Very usefull tool:
http://www.clockwatchers.com/htaccess_tool.html


Another great tool, to search for domains:
http://sexzity.net/domains/
It is new and free for adult webmasters - try it!

swedguy 07-04-2003 07:51 AM

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://hotlinker1.com/* [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://hotlinker2.com/* [NC]
RewriteRule /* http://www.popuphell.com [R,L]

Something like that. You should not have an OR on the last RewriteCond, I've done that mistake couple of times :)

mephisto 07-04-2003 07:59 AM

nicer way to do it than referer based. add code that drops a user cookie say something like encrypted timestamp and then check for it when serving the mpg by putting the mpg link through a cgi script.
also make sure your content is only servable by the script and is in a directory that is unreachable to the webserver.
or you can put in something like the paypal security system (pls retype numbers that you see sort of thing)

mephisto 07-04-2003 08:03 AM

also this

RewriteEngine on
RewriteMap hosts-deny txt:/etc/hosts.deny
RewriteCond ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR]
RewriteCond ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND
RewriteRule ^/.* - [F]

THe /etc/hosts.deny is a suggestion, you may use whatever you choose. :)

swedguy 07-04-2003 08:09 AM

A very wise man taught me something many many moons ago.

KISS - Keep It Simple Stupid :thumbsup

mephisto 07-04-2003 08:14 AM

trying to help him out. as for simplicity, sometimes too much simplicity can hurt you.

emmanuelle 07-04-2003 08:17 AM

Now by putting the htaccess in my free area, am I going to bring the site to a crawl?

I appreciate everyone's help here!

swedguy 07-04-2003 08:38 AM

Quote:

Originally posted by mephisto
trying to help him out. as for simplicity, sometimes too much simplicity can hurt you.
Don't get offended. Take it as a joke :)

swedguy 07-04-2003 08:40 AM

Quote:

Originally posted by emmanuelle
Now by putting the htaccess in my free area, am I going to bring the site to a crawl?

I appreciate everyone's help here!

You should be all good. Unless yu have a list with 500 hotlinkers and lots of traffic. Then it's probably time to figure out another solution.

mephisto 07-04-2003 12:25 PM

Quote:

Originally posted by swedguy
Don't get offended. Take it as a joke :)
just fucking around..... :) heehee


All times are GMT -7. The time now is 09:09 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123