Hola Wenas Les vengo a traer un aporte.. para los webmaster ... algo simple y practico....
algunos tienen webs que se ve mejor con una resolucion... y no quieren que un visitante con resolucion de 800+600 entre a tu web .. o lo queres redireccionar a una pagina que diga "tenes una resolucion no compatible con la web" , esta es la solucion...
ACA EL Codigo
<html>
<head>
<script LANGUAGE="JavaScript">
function redireccionar() {
var url640x480 = "http://www.tu-sitio.com/640x480";
var url800x600 = "http://www.tu-sitio.com/800x600";
var url1024x768 = "http://www.tu-sitio.com/1024x768";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
</script>
</head>
<body onLoad="redireccionar()">
</body>
</html>
Este Codigo lo Insertas en un "index de tu web" o en alguna pagina que quieras que tenga esta proteccion por asi decirlo...