# Browser redirection script

**URL:** https://forum.kirupa.com/t/browser-redirection-script/99651
**Category:** Uncategorized
**Created:** [January 20, 2004, 10:28pm UTC](https://forum.kirupa.com/t/browser-redirection-script/99651 "2004-01-20T22:28:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)
#### Post date: [January 20, 2004, 10:28pm UTC](https://forum.kirupa.com/t/browser-redirection-script/99651/1 "2004-01-20T22:28:00Z")

</div>

I’m looking for a simplified browser redirection script. This is the one I pulled from another site. Does it seem like a nice simplified version? or is there a better one?

with (navigator) {  
if(appName==“Netscape”) {  
// easy check  
if(appVersion.substring(0,1) \< “5” ) {  
window.location.replace(“docs/badbrowser.html”);  
}

// if( userAgent.indexOf(“Netscape6/6.2”) == -1 &&  
// userAgent.indexOf(“rv:0.9.8”) == -1 &&  
// userAgent.indexOf(“rv:0.9.9”) == -1 &&  
// userAgent.indexOf(“rv:1.0”) == -1 &&  
// // if you’re running it, you should know enough to have  
// // a recent version… Viva Linux!  
// userAgent.indexOf(“Galeon”) == -1 &&  
// userAgent.indexOf(“SkipStone”) == -1) {  
// window.location.replace(“docs/badbrowser.html”);  
// }

}  
}

// --\>\</script\>
