-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
59 lines (52 loc) · 2.18 KB
/
Copy path.htaccess
File metadata and controls
59 lines (52 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
RewriteEngine on
RewriteRule (^\.|/\.) - [F]
options -Indexes
<Files .htaccess>
order allow,deny
Deny from all
</Files>
<Files .env>
order allow,deny
Deny from all
</Files>
<Files README.md>
order allow,deny
Deny from all
</Files>
<Files LICENSE>
order allow,deny
Deny from all
</Files>
RewriteEngine On
RewriteRule ^post/([a-zA-Z0-9\-]+)$ post.php?id=$1 [L,QSA]
RewriteCond %{QUERY_STRING} \.\.\/ [NC,OR]
RewriteCond %{QUERY_STRING} \=\< [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*alert.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*document.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*javascript.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*expression.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*vbscript.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*applet.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*embed.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*object.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*frame.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*form.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*input.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*body.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*img.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*style.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*layer.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*title.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*meta.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*embed.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*noscript.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*head.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*html.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*blink.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*marquee.*(\>|%3E) [NC]
RewriteRule ^(.*)$ - [F,L]