/    Sign up×
Community /Pin to ProfileBookmark

Browser Verification

Anyone know how to make a site validate the user’s browser and if it’s not a specific browser version, redirect or show a message? I would like to prevent IE6 and under users from accessing the page and either redirect them to their browser’s main page for updating, or tell them they cant enter.

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzOct 29.2007 — What is this? 1998?

[url=http://www.anybrowser.org/campaign/]Read this.[/url]

Putting a warning message on the page for IE5-6 users is fine. Just don't prevent them from accessing your content.
Copy linkTweet thisAlerts:
@felgallOct 29.2007 — <!--[if IE]>

<p>Content for Internet Exploder</p>

<![endif]-->

<!--[if !IE]-->

<p>Content for real web browsers</p>

<!--[endif]-->
Copy linkTweet thisAlerts:
@dtm32236Oct 29.2007 — hahaha. Felgall: what about IE7? XTREEMMAK seems to want IE7 users to access his site.

but i do agree with Kravvitz.

blocking users with IE6 older browsers from your site is absurd.

i'd be furious if I ever came across that on the web.
Copy linkTweet thisAlerts:
@WebJoelOct 29.2007 — Or a javascript [I]browser sniffer[/I] that detects what user-agent the client is using (mozilla/firefox, opera, netscape, konqueror, safari, and specific versions of them thereof, -etc), and this sniffer provides a page built for them. This works even for non-IE browsers, as 'conditionals' only target versions of IE.

I've used those 'sniffers' before, but one has to assume that javascript is present and/or turned-on..

Mostly though, -I'd try to built pages that deliver content in at least the most minimal form, for every user-agent.
×

Success!

Help @XTREEMMAK 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.9,
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,
)...