revanced-api/api/robots.py
oSumAtrIX b69acfa8d7
feat: Disallow all web crawlers (#111)
* 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>
2023-10-20 18:19:59 -03:00

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")