.:[September 21st - 08:41 CET/GMT+0200]:.

Tips & Tricks to RFC Compliant (x)HTML

Topics:

Document Types
Embed Flash objects in HTML
Switch pages to SSL (https://)
Embed audio in HTML
Prevent MSIE Browser using Mod Rewrite

Deny IE Access

How to prevent guests using Internet Explorer from accessing your website, except for a few pages that you allow them to view, for example, a page that tells them why.
This one is written by John Simpson.
Your webserver must be setup to use mod_rewrite and .htaccess files.

Prevent MSIE Browsers from accessing your website using mod_rewrite


	RewriteEngine   on
	RewriteCond     %{HTTP_USER_AGENT}  MSIE	[NC]
	RewriteCond     %{HTTP_USER_AGENT}  !Opera	[NC]
	RewriteCond     %{REQUEST_URI}      !/ie.html
	RewriteCond     %{REQUEST_URI}      !/ie.shtml
	RewriteCond     %{REQUEST_URI}      !/copyright.html
	RewriteCond     %{REQUEST_URI}      !/glider-small-cyan.png
	RewriteRule     ^.*                 http://www.yoursite.tld/ie.sht
					

Top

Related pages