13 lines
386 B
Python
Executable File
13 lines
386 B
Python
Executable File
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)
|