Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

1 Answer 1

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';
</script>
<![endif]-->
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
show 3 more comments

Your Answer

 
discard

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