 
 
     <cfset isSubNetBlock=false>
-	<cfif listlen(ipaddress,".") is 4>
-        <cfset requestingSubnet=listgetat(ipaddress,1,".") & "." & listgetat(ipaddress,2,".")>
-    <cfelse>
-        <cfset requestingSubnet="0.0">
-    </cfif>
-    <cfif listfind(application.subnet_blacklist,requestingSubnet)>
+
+    <cfif listfind(application.subnet_blacklist,request.requestingSubnet)>
 		<cfset isSubNetBlock=true>
         <p>
 		  Your subnet has been blocked. The self-serve option is not available. You must supply a message and an email address.

		</cfif>
		<cfif len(email) gt 0 and len(c) gt 0>
			<cfmail subject="BlackList Objection" replyto="#email#" to="#Application.bugReportEmail#" from="blacklist@#application.fromEmail#" type="html">
				IP #ipaddress# ( #email# ) had this to say:
				<p>
					#c#
				</p>


<cfif not isdefined("action") or action is not "p">
	<cfquery name="d" datasource="uam_god">
		insert into blacklisted_entry_attempt (ip) values ('#request.ipaddress#')
	</cfquery>
	<!---- is the subnet is hardblock, the IP range has been annoying enough for
		someone to click the button, but not annoying enough to
		firewall block. Check that
	---->
	<cfquery name="d" datasource="uam_god">
		select count(*) c from blacklist_subnet where SUBNET='#request.requestingsubnet#' and status='hardblock'
	</cfquery>


	<cfdump var=#d#>

	<cfabort>




	Oops. It looks like you are on our blacklist. That's probably because someone from your IP
	made a lame attempt to hack us, or possibly we were just feeling exceptionally paranoid when you
