<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>We've been getting an extraordinary amount of spam 
from&nbsp;a few IP ranges (hosting proxies) and countries (Nigeria for example) 
on our classifieds section.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Mod Geo_IP</FONT></DIV>
<DIV><FONT size=2 face=Arial>=============</FONT></DIV>
<DIV><FONT size=2 face=Arial>http {<BR>&nbsp;&nbsp;&nbsp; geoip_country&nbsp; 
/usr/local/share/max/GeoIP.dat;<BR>......<BR>=============</FONT></DIV>
<DIV><FONT size=2 face=Arial>and the result would be in <FONT size=3 
face="Times New Roman">$geoip_country_code </FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><STRONG>How would I ban based on this result ... 
for the whole server? </STRONG></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Banning by CIDR</FONT></DIV>
<DIV><FONT size=2 face=Arial>In Apache a simple Deny from CIDR would work in the 
Directory / section. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><STRONG>How can I do this in Nginx?</STRONG></DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT size=2 face=Arial>Thanks!</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Shri</FONT></DIV>
<DIV><FONT size=2 face=Arial>&nbsp;</DIV></FONT></BODY></HTML>