Following code ban visitor from a specific IP-address to view your page content .
<% 'variables to store banned IP and the users IP Dim strUserAddress , strBlockedIP ' just imagine that this is a banned IP address strBlockedIP="188.8.131.52" ' retrieve the user IP address , strUserAddress = Request.ServerVariables("LOCAL_ADDR") 'if page visitor address equals to banned IP address 'condition and print error message for visitor . If strBlockedIP= strUserAddress Then Response.Write "Error : Your IP address is not allowed to see this page." 'If IP address is not banned. Else Response.Write "<b>Page content </b>" End If %>
_________________ M. S. Rakha, Ph.D. Queen's University Canada