2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-31 21:14:00 +01:00

discard *.php, /wp-admin.. etc etc

This commit is contained in:
2026-02-09 19:12:21 +00:00
parent 3b93507770
commit 0647451a02

View File

@@ -158,7 +158,12 @@ trogglepatterns = [
path('expofiles/', include(expofilesurls)), # intercepted by Apache, if it is running.
path('expofiles', include(expofilesurls)), # curious interaction with the include() here, not just a slash problem.
re_path(r'^(.*)_edit_edit$', spider, name="spider"), # web spider. Intercept and manage it.
re_path(r'^(.*)_edit_edit$', spider, name="spider"), # web spider or bot. Intercept and manage it.
re_path(r'^(.*)\.php$', spider, name="spider"), # web spider or bot. Intercept and manage it.
re_path(r'^(.*)\.do$', spider, name="spider"), # web spider or bot. Intercept and manage it.
re_path(r'^wp-admin(.*)', spider, name="spider"), # web spider or bot. Intercept and manage it.
re_path(r'^wp-content(.*)', spider, name="spider"), # web spider or bot. Intercept and manage it.
re_path(r'^wp-includes(.*)', spider, name="spider"), # web spider or bot. Intercept and manage it.
re_path(r'^caves$', cavesall, name="cavesall"),
re_path(r'^indxal.htm$', cavesall, name="cavesall"), # ~420 hrefs to this url in expoweb files