homepage Welcome to WebmasterWorld Guest from 54.211.97.242
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

    
ban UA's in .htaccess or httpd.conf
I just dont know where to start...
MelWe

10+ Year Member



 
Msg#: 249 posted 1:07 pm on Apr 11, 2003 (gmt 0)

Hi everybody,

I read a lot in this forum about banning IP's and UA's but now I am a bit confused about what the best way is.
I got a brand new virtual privat server and would like to protect it from the start. There will be a lot of client web sites with databases running on that server, so I thought putting the ban in the httpd.conf would be a good idea. But if I need to alter the ban list I need to restart the Apache to get it work. Not good. If I put the ban list in .htaccess it will be easier to maintain. But I read this works slower.

And to be honest, I have no idea where to put the ban list in the httpd.conf and what the right syntax would be.

If you could please help me to decide which way would be best and where I can find help on .htacess and httpd.conf syntax that would be great.

Hope that makes sense to you.

 

brotherhood of LAN

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



 
Msg#: 249 posted 3:13 pm on Apr 11, 2003 (gmt 0)

Welcomet to Webmasterworld Melwe

Did you read this one [webmasterworld.com]? Good read if you haven't.

>>putting the ban in the httpd.conf would be a good idea

I've heard the same thing, it's faster.

>>restart the Apache to get it work

How often are you going to have to change it though? More than Apache would have to read the .htaccess file? ;)

>>right syntax would be

wish I could help there, I think it's the way to go, I'm sure someone will come along and know. My 0.02 is to go with the speedy option. AFAIK most people use .htaccess only because they are on a shared server, im not sure though.

you might want to check out the site search at the top of the page in the meantime.

MelWe

10+ Year Member



 
Msg#: 249 posted 11:37 am on Apr 18, 2003 (gmt 0)

Thanks, brotherhood_of_LAN.

I had lots to read using the site search and decided to put the ban list in htaccess. It works pefectly!

jdMorgan

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



 
Msg#: 249 posted 2:33 pm on Apr 18, 2003 (gmt 0)

MelWe,

Welcome to WebmasterWorld [webmasterworld.com]!

Recommended reading: Introduction to mod_rewrite [webmasterworld.com]

Jim

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