mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-03 19:00:45 +01:00
This commit is contained in:
@@ -796,9 +796,16 @@ class ACLManager:
|
||||
'localhost4.localdomain4', 'localhost6.localdomain6','mail.com', 'mail.ru', 'me.com',
|
||||
'microsoft.com', 'mxlogic.net', 'outlook.com', 'protonmail.com', 'twitter.com', 'yandex.ru']
|
||||
|
||||
DotsCounter = domain.count('.')
|
||||
|
||||
for black in BlackList:
|
||||
if domain.endswith(black):
|
||||
return 0
|
||||
if DotsCounter == 1:
|
||||
if domain == black:
|
||||
return 0
|
||||
else:
|
||||
if domain.endswith(black):
|
||||
logging.writeToFile(black)
|
||||
return 0
|
||||
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user