View Full Version : Code for detecting the visitor's Internet connection?
I need to add code to a page that will detect the visitor's connection. In other words, when they point to the page, I would like to know if they have 56K dialup or if they have broadband so that I can display the appropriate page. I have seen this done based on your country, your browser, etc., but I'm not sure if it's possible for Internet connection.
Is there such a code?
Vito
websterworld
05-30-04, 07:23 AM
there might be. I think those sites with speed tests use that. not sure, how they do it. (if they do it at all)
interactive
05-30-04, 07:41 AM
Originally posted by vito:
I need to add code to a page that will detect the visitor's connection. In other words, when they point to the page, I would like to know if they have 56K dialup or if they have broadband so that I can display the appropriate page. I have seen this done based on your country, your browser, etc., but I'm not sure if it's possible for Internet connection.
Is there such a code?
Vito
As webster said, you'd have to do some sort of a speed test to determine their connection. This probably wouldn't be all that acurate either because you wouldn't know what else they were doing (hence a cable user could be downloading a big file at the same time he loaded your site, it may look at those he was dial up).
Not really sure if there's a feasible way of doing it.
Thanks. I have been on sites where they have to play a multimedia file, and they first ask you to click a button to do a speed test. So I know that can be done. But what I need is one where the test is automatically done on the fly.
I've tried googling without success. Perhaps there is no such animal...
Vito
See if this is what you are looking for Vito.
I don't know if it works with php.
http://twebman.lunarpages.com/js/BandwidthRedirect.htm
Thanks a bunch, blue. Looks like it has potential. I will give it a go. :)
Vito
You could always log there load time and guess from there.
vBulletin v3.5.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.