PDA

View Full Version : browser filter


Z28SS
10-20-2001, 04:08 PM
Howdy....

I'm building a web site from scratch here at FQ that will be using ONLY xhtml 1.1 (modular) or xhtml 1.0 strict in all it's browser display output, including generated pages from scripts, etc.. I already have a script running that will catch any referral (except from the site itself) and funnel the browser to my index.shtml page. I want to run a sniffer script on that page that will automagically dump people with browsers that are not going to render the xhtml/css into a nice directory with html 3.2 (lynx and webTV compatible to boot) page(s) that kindly let them know that their software isn't going to do the job for them and give them links to where they can upgrade, if an upgrade is possible.

Can anyone recommend a browser sniffer script that can weed out a zillion and 3 user-agents so I don't let anyone slip by? I'm looking for the most comprehensive hammer of a script so the job gets done correctly. Free or $ - makes no difference.

I'm going to go hunt a bit more myself. Thanks in advance for any help.

:yeah:

Z28SS
10-20-2001, 09:44 PM
I figured out that using mod_rewrite would do a better and cleaner job of this than running a script. I just need to get a list of the HTTP_USER_AGENT strings that CAN use my menu structure and park the rest of the browsers someplace else.

I'm going to be using absolute positioning in the fixed format so that my menu structure doesn't scroll with the rest of the page, rendering a psuedo frames type environment, but much cleaner and more fun to code, not to mention easier for visitors to find the links they want to navigate the site.

If anyone can point me to a current list of user agent strings, I'd be most appreciative.
Thanks!

Harley
10-21-2001, 01:38 AM
Hi!

While this isn't quite what you're looking for (I'm still searching!), it's a list of almost every browser ever made, with download links for each browser. It could come in handy for testing - when you get to that stage.%)

http://browsers.evolt.org/

Let me know how things go - I'm in the planning (a.k.a dreaming) stages of doing something similar to one of my sites: http://scipilot.com , with an emphasis on usability / accessibility, backward compatibility and forward compatibility - without resorting to an "HTML 1.0" type layout.

Regards!

Harley

Z28SS
10-21-2001, 01:56 AM
I don't believe I've ever seen a larger collection of browsers! :QTwow: Now all I need is a NeXT cube and I can take Nexus for a spin. :) I do believe that you have discovered a browser museum. Very interesting.

I DID just now manage to find EXACTLY what I need, in both a small and eloquent way to pull this off, AND in a web site that would be perfect to send the antiquated browser users to. The link to this page you may find interesting as it shows how to do a DOM SNIFF in Javascript on browsers, thereby filtering out all the coal powered relics.

webstandards.org (http://www.webstandards.org/upgrade/tips.html)

I haven't tried the code yet, since all I have on my machine is Lynx for Win32, IE 6, Netscrape 6.1, and Opera 5.x . I guess I could run it and see if it sends Lynx to the north forty.

Thanks again and kind regards.....