|
|
|
@ -306,8 +306,9 @@ def banned(): |
|
|
|
@app.route('/banned_ip') |
|
|
|
def banned_ip(): |
|
|
|
# Liste des ip pour récupération par babel et plop |
|
|
|
if get_ip() not in ['10.7.0.39', '10.7.0.254' ,'10.13.0.1', '10.69.8.5' ,'10.69.2.219']: |
|
|
|
abort(403) |
|
|
|
if not DEBUG: |
|
|
|
if get_ip() not in ['10.7.0.39', '10.7.0.254' ,'10.13.0.1', '10.69.8.5' ,'10.69.2.219']: |
|
|
|
abort(403) |
|
|
|
|
|
|
|
con = connect_sqlite() |
|
|
|
cur = con.cursor() |
|
|
|
|