Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

Re: [users@httpd] Is it possible to filter requests from certain
browsers/OSes?

Tony Stevenson

2008-07-05

Replies: Find Java Web Hosting

Author LoginPost Reply
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

R. Eimann wrote:
| Hi,
|
| I have a Linux box running SquirrelMail along with an SSH service
| and /etc/{passwd,shadow} are used for authentication.
|

[SNIP] ...

|
| Is there an apache module or something that provides such
functionality? I
| know that I would also be able to hack the SquirrelMail PHP code, but
I would
| have to do that for every new version I install and would thus like to
avoid
| this path.
|
| Cheers,

As I see it, you have 2 ways to do this.

1, using mod_rewrite [1] to rewrite, or redirect based on the useragent
string. Or 2, using modsecurity [2]


[1] http://httpd.apache.org/docs/2.0/misc/rewriteguide.html (search
the page for "Browser Dependent Content"

[2] http://www.modsecurity.org/



Cheers,
Tony


- --


- -----------------------------------------
Tony Stevenson
tony@(protected)
http://blog.pc-tony.com/

1024D/51047D66 ECAF DC55 C608 5E82 0B5E 3359 C9C7 924E 5104 7D66
- -----------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhvyx8ACgkQyceSTlEEfWYf+QCfeq+wvpTe8fHh1u+JnpDouFg7
J5oAn1ouU4EyFnJ7mfisnY7dAUujcuAR
=X3+R
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.