Forum Moderators: phranque
Welcome to WebmasterWorld [webmasterworld.com]!
I've used mod_rewrite in .htaccess under Apache to do this.
You do have to be careful to keep an eye out for new user-agents, though... Otherwise, you may block new browsers and new robots. It's a work in progress, but using this technique reduced the access-control code to about 25% of its previous size.
Jim
Personally I'd steer clear of doing this.
There are literally hundreds of browsers out there, most of which you will never have heard of. Can't see how you'll manage to keep track of all of them - so you'll end up banning some perfectly good users/customers.
What is it your trying to achieve?
[acme.com...]
But what you are asking is how to prevent requests to the server (concerns about error log), no way...you can't stop requests.
I'll take that with a side order of 'aggressively needy'. Sometimes it's very easy to identify those who use post-sites and a channel to vent their personal frustrations.
Hey chill out.. I said I might be asking a "stupid question". No need to bust a vein, flame me or threaten my own sites. :( I was trying to be helpful, sorry if that makes me "aggressively needy". Venting personal frustrations? Eh? Thats what porn is for surely? ;)
So anyway... what kind of non-HTTP traffic are you getting? Are we talking about traffic on other ports (ping, finger etc), SYN attacks on port 80, or just bad requests and garbage being sent over HTTP?
As Netizen says, I think the first two can be handled by a firewall, but the last one might be more difficult.
can someone name me 10 web browsers (not music or wireless) other than IE, Netscape, Mozella, Opera, Lynx and Bobcat.
Certainly.. you'll find about 100 listed right here.
[browsers.evolt.org...]
OTHER DOODLE:
Ok, there area few browsers that I am so glad I never heard of and even happier that anyone who uses them are not visiting the sites I manage. I am sure that if I search the web for 2 - 3 hours I could find a hundred versions of horseradish peanut butter. anyway 'hope you'r laughing' no flame coming from this end..