summaryrefslogtreecommitdiff
path: root/http/pic/.htaccess
blob: a92c220aed6dff1c3336b4f3e75067b3fe7be606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
AddHandler mod_python .py
PythonHandler fetch
PythonDebug On

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule \.(gif|jpe?g|png)$ fetch.py [QSA,L]

<Files fetch.py>
    Order allow,deny
    Allow from all
</Files>
<Files ~ "\.(?i:gif|jpe?g|png)$">
    Order allow,deny
    Allow from all
</Files>

Order deny,allow
Deny from all