2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 22:47:03 +00:00

preventing _edit_edit_edit* loops by bots

This commit is contained in:
2024-04-10 20:24:27 +01:00
parent 2743be281e
commit 65f0c1e29f
3 changed files with 20 additions and 16 deletions

View File

@@ -57,7 +57,9 @@ def expofiles_redirect(request, filepath):
return redirect(urljoin("http://expo.survex.com/expofiles/", filepath))
def spider(request, _):
return redirect("/?#") # so that suffixes applied by spider are no longer part of the url
# urls ending in "_edit_edit"
return render(request, "pagenotfound.html", {"path": path}, status=404)
# return redirect("/?#") # so that suffixes applied by spider are no longer part of the url
def map(request):
"""Serves unadorned the expoweb/map/slippy/map.html file"""