This commit is contained in:
Aevann1 2022-03-22 17:45:52 +02:00
parent 068391a66c
commit 53327a2e49
9 changed files with 23 additions and 25 deletions

View file

@ -525,7 +525,7 @@ def reported_comments(v):
def admin_home(v):
with open('disable_signups', 'r') as f: x = f.read()
if CF_ZONE == '3435tdfsdudebussylmaoxxt43': response = 'high'
if CF_ZONE == 'blahblahblah': response = 'high'
else: response = requests.get(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/settings/security_level', headers=CF_HEADERS, timeout=5).json()['result']['value']
x2 = response == 'under_attack'