<html>
<head>
<script>
function urlvalidation()
{
var querystring = document.location.search.length;
if (querystring>256) //256 is configurable
{
window.location = 'redirect.htm';
}
}
</script>
</head>
<body onload = urlvalidation()>
Test
</body>
</html>
It will validate length of query string, and will be redirected to specific page. All process is client side.