File tree Expand file tree Collapse file tree 1 file changed +32
-8
lines changed Expand file tree Collapse file tree 1 file changed +32
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Disable directory listing
2
2
IndexIgnore *
3
3
4
- # Disable download of PmWiki extensions
5
- <Files "*.zip" >
6
- <IfModule !mod_authz_host.c >
7
- Order Deny ,Allow
4
+ # Forbid download of compressed extensions and
5
+ # direct access to extension scripts and wiki pages
6
+ # Allow access to hub.php in the current directory
7
+ <IfModule !mod_authz_host.c >
8
+ Order Deny ,Allow
9
+
10
+ <FilesMatch "^.*\.([pP][hH][pP]|[zZ][iI][pP])$" >
11
+ Deny from all
12
+ </FilesMatch >
13
+
14
+ <If "%{REQUEST_URI} =~ m!wiki(lib|plain)\.d!" >
8
15
Deny from all
9
- </IfModule >
10
- <IfModule mod_authz_host.c >
16
+ </If >
17
+
18
+ <Files "hub.php" >
19
+ Allow from all
20
+ </Files >
21
+
22
+ </IfModule >
23
+
24
+ <IfModule mod_authz_host.c >
25
+
26
+ <FilesMatch "^.*\.([pP][hH][pP]|[zZ][iI][pP])$" >
11
27
Require all denied
12
- </IfModule >
13
- </Files >
28
+ </FilesMatch >
29
+
30
+ <If "%{REQUEST_URI} =~ m!wiki(lib|plain)\.d!" >
31
+ Require all denied
32
+ </If >
33
+
34
+ <Files "hub.php" >
35
+ Require all granted
36
+ </Files >
14
37
38
+ </IfModule >
15
39
You can’t perform that action at this time.
0 commit comments