View Single Post
Old 01-26-2003, 09:20 PM  
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
Quote:
Originally posted by Madball
I was wondering the same thing. Currently, I use this .htaccess to redirect a certain domain:

setenvifnocase Referer "^http://www.leechingfuck.com" spam_ref=1

<FilesMatch "(.*)">
Order Allow,Deny
Allow from all
Deny from env=spam_ref
</FilesMatch>

This produces a 403, the 403 then sends this to my index.html, rather than a gallery page. My problem however is resources:

Those fucking leeches send me like 150k on a bad day & this bogs down on my server resulting in huge load situations.

Anybody with a better solution?
Take the code out of .htaccess and place it into access.conf. Then it will be read and parsed only when apache starts instead of every request that comes in. Big savings that!

In fact, the only .htaccess files on a dedicated box should be temporary test files. Once the code is working properly, it should be transferred on into access.conf. Place it appropriately within a vitual host, directory or file block to control it's usage.
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A>

<FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER>
fiveyes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote