diff --git a/server.py b/server.py
index 8a3290a..d9e4fe8 100644
--- a/server.py
+++ b/server.py
@@ -378,11 +378,10 @@ def index():
year = datetime.datetime.now().year
hns_scripts = ''
- if not request.host in tlds and 'localhost' not in request.host:
- return render_template('index.html',year=year, handshake_scripts=hns_scripts)
-
tld = request.host.split('.')[-1]
- print(tld)
+ if tld not in tlds and 'localhost' not in tld:
+ return render_template('index.html',year=year, handshake_scripts=hns_scripts)
+
if 'localhost' in tld:
tld = tlds[0]
hns_scripts = ''