In this example, I have told you, only allowed visitor’s IP address without proxy detection in ColdFusion can visit your web site.
Here’s an example
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Allowed Visitor’s IP addresses without proxy detection in ColdFusion</title>
<style type="text/css">
<!--
body,html {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
margin:10px;
}
-->
</style>
</head>
<body>
<span>
<cfset AllowIPAddress = "202.0.23.1">
<cfif ListFind(AllowIPAddress , CGI.REMOTE_ADDR) EQ 0>
Access Denied
<cfabort>
</cfif>
Welcome to Home Page
</span>
</body>
</html>
Output

Download
AllowedIPadresses.cfm (577.00 bytes)
Note: If you have better solution, please post here to share with us.