Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
1987551aca
|
|||
|
b1c6122b4e
|
@@ -403,6 +403,8 @@ def index():
|
||||
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
|
||||
hns_scripts = ''
|
||||
|
||||
if 'ownthedot.com' in request.host:
|
||||
return render_template('ownthedot.html', year=year)
|
||||
tld = request.host.split('.')[-1]
|
||||
if tld not in tlds and 'localhost' not in tld:
|
||||
return render_template('index.html',year=year, handshake_scripts=hns_scripts)
|
||||
|
||||
Reference in New Issue
Block a user