XSS redirection

diego220

Carder
Messages
77
Reaction score
3
Points
8
Ive noticed when setting up scampages firefox will report them. this makes them difficult to use as alot of users will be using firefox and so ure pages will get reported.

Soooo, i figured why not setup a redirect script that will detect the browser and redirect to another site if firefox is in use.

Code:
<script language="JavaScript" 
type="text/JavaScript">
if(navigator.appName == "WebTV")
{
 window.location = "WebTVHome.html"
}
 if(navigator.appName == "Netscape")
{
 window.location = "NetscapeHome.html"
}
 if(navigator.appName == "Microsoft Internet Explorer")
{
 window.location = "ExplorerHome.html"
}
 window.location == "Other.html"
</script>

If you rename the window.location then this is not a problem. Its a handy little tip and works.
 
Top