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:
7
urls.py
7
urls.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user