 	<cfinclude template="/errors/gtfo.cfm">
 	<cfabort>
 </cfif>
+---->
+
+
+<cfquery name="d" datasource="uam_god">
+		insert into uam.blacklist (
+			ip,
+			LISTDATE,
+			STATUS,
+			LASTDATE
+		) values (
+			'#trim(request.ipaddress)#',
+			sysdate,
+			'active',
+			sysdate
+			)
+	</cfquery>
+	<cfset application.blacklist=listappend(application.blacklist,trim(request.ipaddress))>
+	<cf_logError subject="new autoblacklist" message="#bl_reason#">
+	<cfinclude template="/errors/gtfo.cfm">
+
+	added #trim(request.ipaddress)# to the blacklist
+	<cfabort>
+
+<!---- old stuff, just insert
+
+
 <!--- not currently on the nukelist --->
 <cfquery name="exists" datasource="uam_god">
 	select ip from uam.blacklist where ip='#trim(request.ipaddress)#'

<cfif not isdefined("bl_reason")>
	<cfset bl_reason="unknown">
</cfif>
<!--- sometimes already-banned IPs end up here due to click-flooding etc. ---->
<cfif listcontains(application.blacklist,request.ipaddress)>
	<!--- they're already actively blacklisted - do nothing here---->

	<cf_logError subject="new autoblacklist" message="#bl_reason#">
	<cfinclude template="/errors/gtfo.cfm">
	<cfabort>
</cfif>
---->