IP-Überprüfung für Telefonnummern-Links implementiert
This commit is contained in:
3
app.py
3
app.py
@@ -88,7 +88,8 @@ def login():
|
||||
def index():
|
||||
if not session.get('logged_in'):
|
||||
return redirect(url_for('login'))
|
||||
return render_template('index.html')
|
||||
allowed_ip_ranges = os.getenv('ALLOWED_IP_RANGES', '')
|
||||
return render_template('index.html', allowed_ip_ranges=allowed_ip_ranges)
|
||||
|
||||
@app.route('/search')
|
||||
def search():
|
||||
|
Reference in New Issue
Block a user