so in case you are not using user-id and you have /24 subnets you can use the following response page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Web Page Blocked</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta name="viewport" content="initial-scale=1.0">
<style>
#content {
border:3px solid#aaa;
background-color:#fff;
margin:1.5em;
padding:1.5em;
font-family:Tahoma,Helvetica,Arial,sans-serif;
font-size:1em;
}
h1 {
font-size:1.3em;
font-weight:bold;
color:#196390;
}
b {
font-weight:normal;
color:#196390;
}
</style>
<script type="text/javascript">
function onload()
{
var ip = "<user/>";
var octets = ip.split(".");
var subnet = octets[0] + "." + octets[1] + "." + octets[2];
var title = document.getElementById("title");
var infotext = document.getElementById("infotext");
switch (subnet) {
case "10.0.0":
title.innerHTML = "Title 1";
infotext.innerHTML = "Infotext 1";
break;
case "10.0.1":
title.innerHTML = "Title 2";
infotext.innerHTML = "Infotext 2";
break;
case "10.0.2":
title.innerHTML = "Title 3";
infotext.innerHTML = "Infotext 3";
break;
}
}
</script>
</head>
<body bgcolor="#e7e8e9" onload="onload()">
<div id="content">
<h1 id="title">Web Page Blocked</h1>
<p id="infotext">Access to the web page you were trying to visit has been blocked in accordance with company policy. Please contact your system administrator if you believe this is in error.</p>
<p><b>User/IP:</b> <user/> </p>
<p><b>URL:</b> <url/> </p>
<p><b>Category:</b> <category/> </p>
</div>
</body>
</html>
The only thing you need to change is the statements in the switch statement according to your subnets and the title and text you want to display to the user.
... View more