 		</cfif>
 		<cfif isSubNetBlock is false>
 			<cfquery name="unbl" datasource="uam_god">
-			  update uam.blacklist set status='released' where status='active' and ip = '#ipaddress#'
+			  update uam.blacklist set status='released' where status='active' and ip = '#request.ipaddress#'
 			</cfquery>
-			<cfset application.blacklist=listDeleteAt(application.blacklist,listFind(application.blacklist,#ipaddress#))>
+			<cfset application.blacklist=listDeleteAt(application.blacklist,listFind(application.blacklist,#request.ipaddress#))>
 			<cfmail subject="BlackList Removed" to="#Application.bugReportEmail#" from="blacklist@#application.fromEmail#" type="html">
-			  IP #ipaddress# has removed themselves from the blacklist.
+			  IP #request.ipaddress# has removed themselves from the blacklist.
 			</cfmail>
 
 			<p>

<cfif not isdefined("request.ipaddress") or len(request.ipaddress) eq 0>
	<CFIF isdefined("CGI.HTTP_X_Forwarded_For") and len(CGI.HTTP_X_Forwarded_For) gt 0>
		<CFSET ipaddress=CGI.HTTP_X_Forwarded_For>
	<CFELSEif  isdefined("CGI.Remote_Addr") and len(CGI.Remote_Addr) gt 0>
		<CFSET ipaddress=CGI.Remote_Addr>
	<cfelse>
		<cfset ipaddress='unknown'>
	</CFIF>
<cfelse>
	<cfset ipaddress=request.ipaddress>
</cfif>
<cfif not isdefined("action") or action is not "p">
	<cfquery name="d" datasource="uam_god">
		insert into blacklisted_entry_attempt (ip) values ('#ipaddress#')
	</cfquery>

	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

		</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 #request.ipaddress# ( #email# ) had this to say:
				<p>
					#c#
				</p>
