summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-04-10 20:24:27 +0100
committerPhilip Sargent <philip.sargent@gmail.com>2024-04-10 20:24:29 +0100
commit65f0c1e29f5ce9d0ffba63facd5e5bcdfa265f7c (patch)
tree12ec14ec34c00ae8bbb5f7fa87049b5355f071c4 /core/views/expo.py
parent2743be281e06c2667523be8305c966c1d4ebb587 (diff)
downloadtroggle-65f0c1e29f5ce9d0ffba63facd5e5bcdfa265f7c.tar.gz
troggle-65f0c1e29f5ce9d0ffba63facd5e5bcdfa265f7c.tar.bz2
troggle-65f0c1e29f5ce9d0ffba63facd5e5bcdfa265f7c.zip
preventing _edit_edit_edit* loops by bots
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index c8d9482..fadc6ed 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -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"""