blob: 0fceb276c4dddf7175c92ece81ecd95817c7e294 [file] [log] [blame]
#!/usr/bin/env python3
import os
import sys
refer = os.environ.get('HTTP_REFERER', '')
sys.stdout.write(
'Cache: no-cache, no-store\r\n'
'Content-Type: text/html\r\n\r\n'
)
if 'login' in refer.lower():
print('log(\'External script: FAIL\')')
else:
print('log(\'External script: PASS\')')