homepage Welcome to WebmasterWorld Guest from 54.237.134.62
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Banning via htacces?
Brett_Tabke




msg:671492
 2:53 am on Aug 28, 2000 (gmt 0)

Don't know who or why, but sew has basically been under siege for the last couple of days. 150-200k hits to cgi's since Friday. I've blocked their hosts via all my counters and what not.

How can I ban a host via htaccess? I know there is a way - I've done it before and I can't remember how it was done. It was simple. Anyone?

 

Air




msg:671493
 4:12 am on Aug 28, 2000 (gmt 0)

Brett, HERE [engelschall.com] is the relevant documentation on how to do it - I tried it and could not get it to work on my server.

Air




msg:671494
 4:22 am on Aug 28, 2000 (gmt 0)

oops sorry, had a mind melt, was thinking something more complicated ...

you can do it by just adding to .htaccess

deny from xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx = the ip address to deny

littleman




msg:671495
 4:28 am on Aug 28, 2000 (gmt 0)

RewriteEngine on
RewriteCond %{REMOTE_HOST} host.com
RewriteRule !^http://[^/.]\*.* - [F]

RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^111.222.333.444
RewriteRule !^http://[^/.]\*.* - [F]

You could just drop these in - they will work on any domain without modification.

littleman




msg:671496
 4:45 am on Aug 28, 2000 (gmt 0)

Air, I like that. Short and simple. Sometimes it is the simple ways of doing things that are the hardest to learn.

Brett_Tabke




msg:671497
 5:30 am on Aug 28, 2000 (gmt 0)

Thanks to both of you. I was thinking along Little's approach because I didn't remember Air's trick. I knew there was a deny/accept in there somewhere. I can't use mod rewrite over on sew, or here for that matter - not compiled in.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved