update antispam
This commit is contained in:
parent
f33bde72e4
commit
e4248c1e39
1 changed files with 46 additions and 35 deletions
|
|
@ -49,47 +49,58 @@ class AntiSpam(object):
|
||||||
return False
|
return False
|
||||||
if profile['about2'].endswith('mmmmmmmmmmmmmmmm'):
|
if profile['about2'].endswith('mmmmmmmmmmmmmmmm'):
|
||||||
return False
|
return False
|
||||||
if profile['last_ip'].startswith('41.202.'):
|
for ipaddr in (profile['last_ip'], profile['first_ip']):
|
||||||
return False
|
if ipaddr.startswith('41.202.'):
|
||||||
if profile['last_ip'].startswith('41.250.'):
|
return False
|
||||||
return False
|
if ipaddr.startswith('41.250.'):
|
||||||
if profile['last_ip'].startswith('41.141.'):
|
return False
|
||||||
return False
|
if ipaddr.startswith('41.141.'):
|
||||||
if profile['last_ip'].startswith('194.177.'):
|
return False
|
||||||
return False
|
if ipaddr.startswith('194.177.'):
|
||||||
if profile['last_ip'] in ('62.157.186.18', '198.36.222.8', '212.234.67.61'):
|
return False
|
||||||
return False
|
if re.match('105\.13\d.*', ipaddr):
|
||||||
|
return False
|
||||||
|
if ipaddr in ('62.157.186.18', '198.36.222.8', '212.234.67.61'):
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def check_contact(self, contact):
|
def check_contact(self, contact):
|
||||||
if not self.check_profile(contact.aum_profile):
|
if not self.check_profile(contact.aum_profile):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
ipaddr = contact.profile['info']['IPaddr'].value.split(' ')[0]
|
first_ip = contact.profile['info']['IPaddr'].value.split(' ')[0]
|
||||||
if contact.profile['info']['IPaddr'].value.rstrip(')').endswith('.afnet.net'):
|
last_ip = contact.profile['info']['IPaddr'].value.rstrip(')')
|
||||||
return False
|
for ipaddr in (first_ip, last_ip):
|
||||||
if contact.profile['info']['IPaddr'].value.rstrip(')').endswith('.iam.net.ma'):
|
if ipaddr.endswith('.afnet.net'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('.amsterdam.ananoos.net'):
|
if ipaddr.endswith('.iam.net.ma'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('.tedata.net'):
|
if ipaddr.endswith('.amsterdam.ananoos.net'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('kupo.fr'):
|
if ipaddr.endswith('.tedata.net'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('.static.virginmedia.com'):
|
if ipaddr.endswith('kupo.fr'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('frozenway.com'):
|
if ipaddr.endswith('.static.virginmedia.com'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('.rev.bgtn.net'):
|
if ipaddr.endswith('frozenway.com'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('real-vpn.com'):
|
if ipaddr.endswith('.rev.bgtn.net'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('.nl.ipodah.net'):
|
if ipaddr.endswith('real-vpn.com'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('.wanamaroc.com'):
|
if ipaddr.endswith('.nl.ipodah.net'):
|
||||||
return False
|
return False
|
||||||
if ipaddr.endswith('.ukservers.com'):
|
if ipaddr.endswith('.wanamaroc.com'):
|
||||||
return False
|
return False
|
||||||
|
if ipaddr.endswith('.ukservers.com'):
|
||||||
|
return False
|
||||||
|
if ipaddr.endswith('.startdedicated.com'):
|
||||||
|
return False
|
||||||
|
if ipaddr.endswith('.clients.your-server.de'):
|
||||||
|
return False
|
||||||
|
if ipaddr.endswith('.cba.embratel.net.br'):
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def check_mail(self, mail):
|
def check_mail(self, mail):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue