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?

  • 5
    Do you really want to block IE users? You can't get your blog to work in IE at all?
    – John Conde
    Commented Dec 15, 2011 at 19:47
  • This is not friendly to your blog visitors, why do you want to do that?
    – Osvaldo
    Commented Dec 15, 2011 at 22:11

1 Answer 1


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';
  • 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
    Commented Jan 27, 2012 at 17:21
  • I updated my answer with an example for you.
    – John Conde
    Commented Jan 28, 2012 at 0:07
  • Unfortunately it is not working, please check the site. Thanks...
    – user11320
    Commented Jan 28, 2012 at 10:10
  • Sorry, made a typo. Try again.
    – John Conde
    Commented Jan 28, 2012 at 20:01
  • I noticed that it redirects all the links that I click but not the home page. Also, it redirect links to mydomain.com/[post-date]/[post-name]/ie-only.html istead of mydomain.com/ie-only.
    – user11320
    Commented Jan 29, 2012 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.