/    Sign up×
Community /Pin to ProfileBookmark

Block IE users?

I’m looking to redirect all IE users to a specific page that I have set up (one with a link to getfirefox.com). Is this possible?

…yes, I know the statistics.

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@LeeUSep 05.2006 — Yes, [URL=http://javascript.internet.com/miscellaneous/get-firefox.html]go here[/URL].
Copy linkTweet thisAlerts:
@csraminauthorSep 05.2006 — Maybe this can be manipulated to work how I want, but I'm not sure how.

What I'm trying to do is block my website from IE users or redirect them to a certain page I have set up.

So for example; if someone using IE comes to my site they will only be able to view the one page with I have created for them and all other users will be able to access the site. Does that make sense?

Can I use this code to do that? If so how?
Copy linkTweet thisAlerts:
@kiwibritSep 05.2006 — Bit late at night, here, so I am not thinking clearly - but I think what you want might be possible with an IE conditional statement. Something like:
<i>
</i>&lt;!--[if IE]&gt;
&lt;?php
header("Location: http://www.gotoyourfirefoxurl.com/");
exit ;
?&gt;
&lt;![endif]--&gt;



Above using php - but you could use asp or whatever turns you on. I suggest not javascript, in case your viewer has it disabled.

But be warned, that's not tested, and someone more experienced and more awake than I will no doubt hit me on the head. Quite right, too ?

I wonder why you want to do this? Surely we should write web sites so viewers may use whichever browsers they wish. If you have a commercial site, I would think what you want is most unwise.
Copy linkTweet thisAlerts:
@kiwibritSep 05.2006 — Still burbling.

In the <head> of your document, how about:
<i>
</i>&lt;!--[if IE]&gt;
&lt;meta http-equiv="refresh" content="0;url=http://www.gotoyourfirefoxurl.com"&gt;
&lt;![endif]--&gt;
Copy linkTweet thisAlerts:
@csraminauthorSep 05.2006 — I wonder why you want to do this? Surely we should write web sites so viewers may use whichever browsers they wish. If you have a commercial site, I would think what you want is most unwise.[/QUOTE]

For commercial use I agree with you 100%, but this is just a fun/personal site so I want to do everything I never get to do when working for someone or with someone else in mind.


P.S. It didn't work, but then again I'm not super familiar with PHP. [URL=http://www.mindshunt.com]mind shunt[/URL] Did I do this right?
Copy linkTweet thisAlerts:
@csraminauthorSep 05.2006 — HA! That is perfect. Thank you very much! ?
Copy linkTweet thisAlerts:
@kiwibritSep 05.2006 — Your welcome. Used "refresh", I see. Must turn in. It's nearly 1am, here in the UK.
×

Success!

Help @csramin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...