mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-30 06:34:36 +02:00

* feat: Disallow all web crawlers * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
11 lines
235 B
Python
11 lines
235 B
Python
from sanic import Blueprint
|
|
from sanic.response import text
|
|
|
|
|
|
robots: Blueprint = Blueprint("robots")
|
|
|
|
|
|
@robots.get("/robots.txt")
|
|
async def robots_txt(request):
|
|
return text("User-agent: *\nDisallow: /", content_type="text/plain")
|