homepage Welcome to WebmasterWorld Guest from 50.17.86.12
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
i have a .htaccess ban bad bot problem question ...
StopSpam

10+ Year Member



 
Msg#: 480 posted 11:22 pm on Oct 22, 2003 (gmt 0)

i have a .htaccess ban bad bot problem question ...
i use the bellow code to ban spam robots ect

SetEnvIf Remote_Addr ^11\.xxx\.33\.44$ ban
SetEnvIf Remote_Addr ^55\.xxx\.77\.88$ ban
<Files ~ "^.*$">
order allow,deny
allow from all
deny from 127.x.0.199
deny from 192.xxx.0.19
deny from env=ban
</Files>

the above code i place in the htaccess file in my public_html folder...
but the banned ipís are only banned in the public_html folder not in any sub folder
or in the cgi-bin also located inside the public_html folder ..

How come? is the dedicated server not configired corectly ..
that the apache config.file is not allwoing to overwrite ban rules in sub folders? or is this line wrong: <Files ~ "^.*$">

please advise i need help

i have two dif servers and on one it works fine and ont he other it bans only in one folder

[edited by: jdMorgan at 12:33 am (utc) on Oct. 24, 2003]
[edit reason] Generalized specific IP addresses [/edit]

 

keyplyr

WebmasterWorld Senior Member keyplyr us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 480 posted 11:35 pm on Oct 22, 2003 (gmt 0)

is this line wrong: <Files ~ "^.*$">

Try this, it will ban from all files:
<Files *>

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 480 posted 11:37 pm on Oct 22, 2003 (gmt 0)

StopSpam,

Well, you could just use <Files *>, but that's not the problem. You might want to check your config file, and make sure you have AllowOverride Limit or AllowOverride All set for the directory path you're trying to protect. See AllowOverride in the Apache core documentation.

Jim

StopSpam

10+ Year Member



 
Msg#: 480 posted 12:09 am on Oct 23, 2003 (gmt 0)

jim i were thinking the same ..

yes i try <Files *> thti not helped as well ..

me to agree its a config.file thing ..
thanks Jim i will forward it to the sys-admin fo the hostign companey

StopSpam

10+ Year Member



 
Msg#: 480 posted 9:17 am on Oct 23, 2003 (gmt 0)

Dear Jim do you know were i can learn all about how to cinfigure the apache config.file

i am plannign on chnaging from virtual server to dedicated server.. but i will have to configure the apache config.file myself ..never done that before never seen the file before...

can you give me few links that teach me this?

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 480 posted 2:04 pm on Oct 23, 2003 (gmt 0)

StopSpam,

I'd start at the source: [httpd.apache.org...]

Jim

StopSpam

10+ Year Member



 
Msg#: 480 posted 2:28 pm on Oct 23, 2003 (gmt 0)

i know this url myself as well hehehe ;-)
but its huge big .. i cant read all it takes weeks ..

i were hopign for soem quick guide

DaveAtIFG

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 480 posted 2:39 pm on Oct 23, 2003 (gmt 0)

This [google.com] should help you find what you need! ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
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