diff --git a/src/endpoints/web.py b/src/endpoints/web.py index d482062..94390a7 100644 --- a/src/endpoints/web.py +++ b/src/endpoints/web.py @@ -8,9 +8,25 @@ def index(): return render_template("index.html") -# @app.route('/debug/user/', methods=['GET']) -# def debug_user(): -# return debug_user(False) +@app.route('/robots.txt', methods=["GET"]) +def robots(): + return send_from_directory(app.static_folder, request.path[1:]) + + +@app.route('/.well-known/security.txt', methods=["GET"]) +def security(): + return send_from_directory(app.static_folder, request.path[1:]) + + +@app.route('/.well-known/gpc.json', methods=["GET"]) +def gpc(): + return send_from_directory(app.static_folder, request.path[1:]) + + +@app.route('/.well-known/dnt-policy.txt', methods=["GET"]) +def dnt(): + return send_from_directory(app.static_folder, request.path[1:]) + @app.route('/debug/user/', methods=['GET'], defaults={'steamid': None}) @app.route('/debug/user/', methods=['GET']) diff --git a/src/static/.well-known/dnt-policy.txt b/src/static/.well-known/dnt-policy.txt new file mode 100644 index 0000000..240afa1 --- /dev/null +++ b/src/static/.well-known/dnt-policy.txt @@ -0,0 +1,7 @@ +This is the Do Not Track (DNT) policy for our third-party gaming API. + +We respect the Do Not Track signals sent by users' browsers. We do not track users who have enabled the DNT preference. However, please note that certain basic logging and tracking may still occur for essential operational purposes, such as monitoring server health and preventing abuse. + +Rest assured that any data logged, including IP addresses and login timestamps, is solely for internal use and is not shared with any third parties. We prioritize user privacy and take appropriate measures to protect the data collected. + +If you have any questions or concerns regarding our DNT policy or data privacy, please feel free to contact us at deathgardenrebirth@gmail.com. diff --git a/src/static/.well-known/gpc.json b/src/static/.well-known/gpc.json new file mode 100644 index 0000000..ab1bc70 --- /dev/null +++ b/src/static/.well-known/gpc.json @@ -0,0 +1,5 @@ +{ + "title": "General Page Category", + "category": "gaming", + "purpose": "This is a third-party gaming API for the Deathgarden Bloodharvest rebirth Project." +} \ No newline at end of file diff --git a/src/static/.well-known/security.txt b/src/static/.well-known/security.txt new file mode 100644 index 0000000..42bdb18 --- /dev/null +++ b/src/static/.well-known/security.txt @@ -0,0 +1,5 @@ +Contact: mailto:deathgardenrebirth@gmail.com +Expires: 2025-12-31T23:00:00.000Z +Preferred-Languages: en, de +Canonical: https://api.zkwolf.com/.well-known/security.txt +Canonical: https://api.bloodharvest-rebirth.com/.well-known/security.txt diff --git a/src/static/robots.txt b/src/static/robots.txt new file mode 100644 index 0000000..c6742d8 --- /dev/null +++ b/src/static/robots.txt @@ -0,0 +1,2 @@ +User-Agent: * +Disallow: /