testing
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from flask import Flask, render_template, request
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/blocked")
|
||||
def blocked():
|
||||
domain = request.args.get("domain", "that site")
|
||||
reason = request.args.get("reason", "blocked by network policy")
|
||||
return render_template("blocked.html", domain=domain, reason=reason)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host="0.0.0.0", port=5000, debug=True)
|
||||
Reference in New Issue
Block a user