Skip to content

Commit

Permalink
CP-19: Additional Domains to Block
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Sep 13, 2021
1 parent 0b0ecd4 commit e65beba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plogical/acl.py
Expand Up @@ -788,7 +788,12 @@ def checkOwnerProtection(currentACL, owner, child):

@staticmethod
def CheckDomainBlackList(domain):
BlackList = ['hotmail.com', 'gmail.com', 'yandex.com', 'yahoo.com', 'localhost']
import socket
BlackList = [ socket.gethostname(), 'hotmail.com', 'gmail.com', 'yandex.com', 'yahoo.com', 'localhost', 'aol.com', 'apple.com',
'cloudlinux.com', 'email.com', 'facebook.com', 'gmail.com', 'gmx.de', 'gmx.com', 'google.com',
'hushmail.com', 'icloud.com', 'inbox.com', 'imunify360.com', 'juno.com', 'live.com', 'localhost.localdomain',
'localhost4.localdomain4', 'localhost6.localdomain6','mail.com', 'mail.ru', 'me.com',
'microsoft.com', 'mxlogic.net', 'outlook.com', 'protonmail.com', 'twitter.com', 'yandex.ru']

for black in BlackList:
if domain.endswith(black):
Expand Down

0 comments on commit e65beba

Please sign in to comment.