Javascript - Anti browser checking

This is a discussion on "Javascript - Anti browser checking" within the JavaScript Forum section. This forum, and the thread "Javascript - Anti browser checking are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 3rd, 2007, 16:45
Junior Member
Join Date: Aug 2007
Location: Hong Kong
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript - Anti browser checking

Hi folks,

Ubuntu 7.04 desktop
Opera 9.22


Frequently I encountered problem on visiting some public websites claiming "Browser not support", "Require Internet Explorer V.xx". If luck with me I can identify the browser as IE to bypass it. If out of luck I have to going back to MS Window IE. In the later case I suppose they check the features of browser visiting their site. I'm now searching a java script to defeat such check.

Can any folk shed me some light? Is there such a script available on this site? If NO please help me to write such a script. TIA

satimis
Reply With Quote

  #2 (permalink)  
Old Aug 3rd, 2007, 16:54
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Anti browser checking

Hmmm ... can't you disable javascript in Opera? In the preferences? That might do it.
Reply With Quote
  #3 (permalink)  
Old Aug 4th, 2007, 01:02
Junior Member
Join Date: Aug 2007
Location: Hong Kong
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Anti browser checking

Quote:
Originally Posted by karinne View Post
Hmmm ... can't you disable javascript in Opera? In the preferences? That might do it.
Hi karinne,

Already tried before. Disable java/javascript reults in the webpage can't be displayed correctly.

B.R.
satimis
Reply With Quote
  #4 (permalink)  
Old Aug 7th, 2007, 22:32
Reputable Member
Join Date: Dec 2005
Location: U.S.A.
Posts: 147
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to ScottR Send a message via Skype™ to ScottR
Re: Javascript - Anti browser checking

As far as I know there is no way to hide your browser. The script checks the application name for certain words and returns true or false. So you would somehow have to fool the script into thinking that Microsoft Internet Explorer is contained in the application name for Opera somewhere.

Good Luck,
Scott
Reply With Quote
  #5 (permalink)  
Old Aug 8th, 2007, 02:13
Junior Member
Join Date: Aug 2007
Location: Hong Kong
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Anti browser checking

Quote:
Originally Posted by ScottR View Post
As far as I know there is no way to hide your browser. The script checks the application name for certain words and returns true or false. So you would somehow have to fool the script into thinking that Microsoft Internet Explorer is contained in the application name for Opera somewhere.
Hi Scott,


Before I went to a wrong concept that the administrators of those public site wrote a script to check the components of the browser visiting their sites and posted this topic. Actually it is NOT.


After investigating the problem a couple days I think I can come up with a conclusion. Those public sites refuse to be visited with browsers other than IE NOT for security reason BUT largely on account of the administrators' experience and knowledge in building webpages.


A webpage displays differently on browsers. To make a webpage to be displayed exactly as they imagine on all browsers is NOT an easy job. So the easiest and straighforward solution is controlling the browser visiting their webpages, ONLY allowing the browser they test their webpage on its building. Unfortunately most people use the buggy IE as browser. They use it for testing. Therefore they exclude other browsers visiting their webpages. On detecting identification, non-IE visitors will be directed to a warning page saying "browser NOT supported. Please use IE....."


I succeeded visiting those public sites with Opera and Firefox identified as IE. I found some icons/links/etc. disappeared. Because ActiveX is needed. Unfortunately ActiveX does not work on Linux. I ran IE on MS Windows to prove my finding.


The above is my observation. Up-to-now further efforts injected on this respect will be unnecessary, ONLY wasting time. Unless a new technology has been developed on open source to make ActiveX working on Linux/Unix OR other solutions.


If those site administrators have capable knowhow writing a script checking the components of the visiting browser, it will be better devoting their effort building their webpages displayed exactly as imagined on all available browsers on the Globe.


IEs4Linux running on Linux can do the job because it runs native IE on it. However it is NOT stable. One day before after upgrading wine the top tool bar on IE disappeared. I force-downgraded wine to its previously version. Reinstalled IE to get the top tool bar back. Still I can't enable ActiveX. After its enabling and reload IE it came back to "disable ActiveX". I don't know WHY?


B.R.
satimis

Last edited by satimis; Aug 8th, 2007 at 07:27.
Reply With Quote
  #6 (permalink)  
Old Aug 8th, 2007, 12:48
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Anti browser checking

Quote:
Originally Posted by satimis View Post
Those public sites refuse to be visited with browsers other than IE NOT for security reason BUT largely on account of the administrators' experience and knowledge in building webpages.
Yeah .... no! Those are people that don't want to take the time to learn how to code properly.

There is no ... NO ... excuse for not having your site work properly in all major browsers (IE, Firefox, Opera, Safari)
Reply With Quote
  #7 (permalink)  
Old Aug 8th, 2007, 13:06
Reputable Member
Join Date: Dec 2005
Location: U.S.A.
Posts: 147
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to ScottR Send a message via Skype™ to ScottR
Re: Javascript - Anti browser checking

I agree with Karinne, anyone who denies a user access to their site depending on what browser they use obviously has no idea what they are doing, and should leave coding web pages to those that know what they are doing.
Reply With Quote
  #8 (permalink)  
Old Aug 8th, 2007, 15:43
Junior Member
Join Date: Aug 2007
Location: Hong Kong
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Anti browser checking

Quote:
Originally Posted by karinne View Post
...... There is no ... NO ... excuse for not having your site work properly in all major browsers (IE, Firefox, Opera, Safari)
About seven years ago I encountered exactly the same problem on online banking. Browsers other than IE visiting the site of my bank will be sensored to a warning page. I was running mozila/konqueror/Opera (I can't recall exactly). I called my bank to let my browser in, adding it to my account. They refused on the excuse of security reason. Finally I managed to get in with the browser identified as IE.

After seven years there are still folks using similar tactic. At the beginning I went to the wrong concept that they may run an advanced script checking the features and components of the visiting browser other than identity. In fact they have no improvement on technic, still checking identify.

I have been doing webpage design several years ago. To make a webpage displays exactly as imagined throughout all browsers are time consuming. The easiest way would be restricting browser.

I ran text browser visiting those public sites. I found the embedded links which can't be seen by Firefox and Opera because without ActiveX, icons disappeared. Text browser can do the job which a GUI browser can't do.


satimis
Reply With Quote
Reply

Tags
javascript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti SQL Injection Functions spinal007 Classic ASP 5 Mar 7th, 2008 10:15
[Tutorial -> Trick] Link checking using JavaScript (ny myself) RohanShenoy JavaScript Forum 7 Nov 8th, 2007 12:52
javascript checking for broken links Code_breaker JavaScript Forum 6 Nov 8th, 2007 07:19
Javascript to catch browser/plugins event le duc bao JavaScript Forum 0 May 10th, 2007 12:38
Good cross browser javascript / xml libriary onrealtime JavaScript Forum 1 Dec 5th, 2006 19:29


All times are GMT. The time now is 10:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43