Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I add a custom page that is displayed only to Internet Explorer users so that they are not able to access my blog.

I'm using Wordpress 3.3 and thought there would be a plugin for that or something but no luck (there's a plugin that only adds a pop up window).

Is that achieved by using some kind of redirect or what?

share|improve this question
Do you really want to block IE users? You can't get your blog to work in IE at all? – John Conde Dec 15 '11 at 19:47
This is not friendly to your blog visitors, why do you want to do that? – Osvaldo Dec 15 '11 at 22:11
up vote 5 down vote accepted

You can use conditional comments for IE users and then use JavaScript to redirect them to a page that tells them whatever it is you want to say.

Try something like this in the <head> of your web page:

<!--[if IE]>
<script type="text/javascript">
    window.location = 'ie-only.html';
share|improve this answer
Thanks, I'll look into it... – user11320 Dec 16 '11 at 10:46
I tried adding a code from the link you provided but don't understand how to use it really. Could you please add a sample code that would lead to page mydomain.com/ie whenever a user tries to access the website with IE? Also, where am I suppose to put the conditioning code? To head, before head or somewhere else? – user11320 Jan 27 '12 at 17:21
I updated my answer with an example for you. – John Conde Jan 28 '12 at 0:07
Unfortunately it is not working, please check the site. Thanks... – user11320 Jan 28 '12 at 10:10
Sorry, made a typo. Try again. – John Conde Jan 28 '12 at 20:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.