Hi,
One of my anvil apps is continously getting scanned by bots. From the session logs i see the following:
session started: 2026-03-11 10:21:37.327000
show started: 2026-03-11 10:21:37.820000
view nr: 0 is set
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/assetlinks.json'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/apple-app-site-association'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/related-website-set.json'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/assetlinks.json'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/apple-app-site-association'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/web-identity'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/privacy-sandbox-attestations.json'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/gpc.json'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/passkey-endpoints'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/webauthn'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/ucp'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/security.txt'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/change-password'
anvil.server.NoServerFunctionError: API request routing failed. No @anvil.server.http_endpoint exists with path matching '/resource-that-should-not-exist-whose-status-code-should-not-be-200/'
Although i do not use routing, i thought that by adding the following “catch all” routes would help me. But sadly it is not.
@anvil.server.route("/:path", methods=["GET", "POST"])
def catch_all_route(path, **params):
return anvil.server.HttpResponse(404, "Not found")
@anvil.server.http_endpoint("/:path")
def catch_all_api(path, **params):
return anvil.server.HttpResponse(404, "Not found")
Has someone else experienced the same issue, if yes, how did you solve it? ![]()
Preferably i dont want to add user authentication to the app.