Re: Is it possible to filter requests from certain browsers/OSes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxx  //  pctony@xxxxxxxxxx
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux