I need a script making so that it can only provide updates if a certain browser is accessing the updates page. The browser version is 4.0 (compatible; MSIE 6.0; Windows NT 5.1; Browsemaster v1.1) and the update page is http://www.freewebs.com/yowzagames-m...master/updates (this page hasn't been added yet because I need the script)
It's part of an arbitrary value placed in the browser's identifying string ( navigator.userAgent ) by the developers of the browser. For example, Microsoft use 'MSIE' and several browsers 'Gecko'.
Some browsers make it easy to change this string so that they appear to be something they are not.
Because of this, using the identifier is not 100% safe, it would be better to know if 'Browsemaster' had a unique capability ( that no other version of MSIE 6.0 has) that could be tested for.
browsemaster is my very own browser, i finished version 1.1 of it yesterday.It's gonna be added as soon as i've made the page for updating straight from the browser.
I got something similar to that script earlier and it didn't work, this one doesn't seem to work either
The only unique feature I can think of are it's update button which just directs you to a page with the updates listed (the page with the script on) and the other feature is a button that leads to my site by clicking it. Are there any other scripts that i could use to check that it is browsemaster and not IE, netscape, firefox, etc. accessing the updates page?
If it doesn't, what server side scripting language do you have access to?
You can use a server-side language to query the server variable HTTP_USER_AGENT which returns the same string you mentioned earlier and is the equivalent of navigator.userAgent.
The initial script i was after was an auto-update script to check if there were any browsemaster updates and update in the background if there were. I realised this was going to be too hard and decided to try and get a page with a script like this in it.
I'm also looking for a new name for it. Any ideas?
var name = navigator.appName;
var vers = navigator.appVersion;
vers = vers.substring(0,1); // or 0,4 could return 4.5 instead of just 4
if (client == "Microsoft internet explorer")
url += vers + ".html";
// You may make the redirection automatic by using this
// instead of the three document.write lines above
// End -->
It needs editing to fit Browsemaster but i'm not sure what i should change.