homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

Banning via htacces?

 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?



 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.


 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


 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.


 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.


 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved