Welcome to WebmasterWorld Guest from 23.22.182.29

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

ban UA's in .htaccess or httpd.conf

I just dont know where to start...

     
1:07 pm on Apr 11, 2003 (gmt 0)

New User

10+ Year Member

joined:Apr 11, 2003
posts:5
votes: 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.

3:13 pm on Apr 11, 2003 (gmt 0)

Moderator from GB 

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

joined:Jan 30, 2002
posts:4842
votes: 1


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.

11:37 am on Apr 18, 2003 (gmt 0)

New User

10+ Year Member

joined:Apr 11, 2003
posts:5
votes: 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!

2:33 pm on Apr 18, 2003 (gmt 0)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


MelWe,

Welcome to WebmasterWorld [webmasterworld.com]!

Recommended reading: Introduction to mod_rewrite [webmasterworld.com]

Jim