Skip to content

Commit e65beba

Browse files
committed
CP-19: Additional Domains to Block
1 parent 0b0ecd4 commit e65beba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plogical/acl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,12 @@ def checkOwnerProtection(currentACL, owner, child):
788788

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

793798
for black in BlackList:
794799
if domain.endswith(black):

0 commit comments

Comments
 (0)