Byteplant Forum

Home » CleanMail Support » CleanMail SpamAssassin Filter » Block specific foreign countries
Block specific foreign countries [message #484] Tue, 23 May 2006 18:46
RandallRash
Messages: 23
Registered: March 2005
Junior Member
See www.completewhois.com for info on what IP blocks belong to what countries. Below is a sample of how to check the IP address and block foreign spam.


header WHOIS_COUNTRY eval:check_rbl('whoisctry', 'country-rirdata.dnsiplists.completewhois.com.')
tflags WHOIS_COUNTRY net
score WHOIS_COUNTRY 0.01

header WHOIS_CHILE eval:check_rbl_sub('whoisctry', '127.0.67.76')
describe WHOIS_CHILE CHILE
tflags WHOIS_CHILE net
score WHOIS_CHILE 20.0

header WHOIS_KOREA eval:check_rbl_sub('whoisctry', '127.0.75.82')
describe WHOIS_KOREA SOUTH KOREA
tflags WHOIS_KOREA net
score WHOIS_KOREA 20.0

header WHOIS_CHINA eval:check_rbl_sub('whoisctry', '127.0.67.78')
describe WHOIS_CHINA CHINA
tflags WHOIS_CHINA net
score WHOIS_CHINA 20.0
Previous Topic: Start a new Bayes database
Next Topic: Can I stop these?
Goto Forum:
  


Current Time: Tue Dec 06 13:09:33 CET 2016