Darxus

How to deny access to your Apache web server to all Microsoft browser users

How to deny access to your Apache web server to all Microsoft browser users

Previous Entry Add to Memories Share this! Next Entry
2009-09-29
RewriteCond %{REQUEST_URI} !^/fail/$
RewriteCond %{HTTP_USER_AGENT} .*MSIE.*
RewriteRule .* /fail/ [R]

This redirects to the /fail/ page on your web site.

It will be interesting to see what happens to my log files.

(Reason in previous post.)
  • So, just for curiosity, why would you want to do that?
    • I added the link to my previous post around the same time you commented.
  • That rocks.
    • Thank you.
      • It might be more productive in the long run to rather than block, redirect to a simple page with a rant message along the lines of, "we're sorry, the browser you are currently using does not comply with internationally recognized standards. Please notify your browser vendor, or switch to one that does.".
  • My browser is lynx, version 2.8.6. It fails the
    acid3 test rather spectacularly, but I can still
    access your page.
Powered by LiveJournal.com