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 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

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 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
  • 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 Jan 29 '12 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy