Attachment 'spider_allowed_actions.patch'
Download 1 diff -r 5afc0a9e3fc3 MoinMoin/config/multiconfig.py
2 --- a/MoinMoin/config/multiconfig.py Wed Jun 25 21:01:58 2008 +0200
3 +++ b/MoinMoin/config/multiconfig.py Sat Jun 28 07:15:36 2008 +0800
4 @@ -605,6 +605,7 @@
5 'intelix|jeeves|larbin|leech|libwww-perl|linkbot|linkmap|linkwalk|litefinder|mercator|'
6 'microsoft.url.control|mirror| mj12bot|msnbot|msrbot|neomo|nutbot|omniexplorer|puf|robot|scooter|seekbot|'
7 'sherlock|slurp|sitecheck|snoopy|spider|teleport|twiceler|voilabot|voyager|webreaper|wget|yeti')
8 + spider_allowed_actions = []
9
10 unzip_single_file_size = 2.0 * 1000 ** 2
11 unzip_attachments_space = 200.0 * 1000 ** 2
12 diff -r 5afc0a9e3fc3 MoinMoin/request/__init__.py
13 --- a/MoinMoin/request/__init__.py Wed Jun 25 21:01:58 2008 +0200
14 +++ b/MoinMoin/request/__init__.py Sat Jun 28 07:15:36 2008 +0800
15 @@ -1036,7 +1036,8 @@
16 # allow spiders to get attachments and do 'show'
17 not (action == 'AttachFile' and 'do=get' in qs) and
18 action != 'show' and
19 - action != 'sitemap'
20 + action != 'sitemap' and
21 + action not in self.cfg.spider_allowed_actions
22 ):
23 forbidden = self.isSpiderAgent
24
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.