<cfset LocalSubnet = "192.168.0.">
<cfif left(cgi.remote_addr,len(LocalSubnet)) IS NOT LocalSubnet>
<!--- unauth handled here --->
</cfif>
You can either redirect the unauthorised users with cflocation or simply
display an error then cfabort the template.
--
Jay
________________________________
From: Sandy Clark [mailto:[EMAIL PROTECTED]
Sent: 17 June 2004 13:39
To: CF-Talk
Subject: RE: How to Ban IP Addresses
<cfset lowerrange = 127.0.0.1>
<cfset upperrange = 127.255.255.255>
<cfif cgi.remote_addr LT lowerrange OR cgi.remote_addr GT upperrange>
<cflocation url="" >
</cfif>
_____
From: Justin Jefferson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 8:30 AM
To: CF-Talk
Subject: How to Ban IP Addresses
I'm trying to figure out a way to ban IP Addresses that are outside a
particular IP range.
If anyone has a idea that would be great.
_____
________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

