Skip to content

Commit e98512b

Browse files
committed
Changes for file security
1 parent c8c96aa commit e98512b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.htaccess

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<files “.htaccess”>
2+
order allow,deny
3+
deny from all
4+
</files>
5+
6+
Options +FollowSymlinks
7+
RewriteEngine On
8+
rewritecond %{REQUEST_FILENAME} !^(.+).css$
9+
rewritecond %{REQUEST_FILENAME} !^(.+).js$
10+
rewritecond %{REQUEST_FILENAME} !file.php$
11+
12+
13+
RewriteEngine On
14+
RewriteCond %{HTTP_REFERER} !^$
15+
RewriteCond %{HTTP_REFERER} !^http://(www\.)?site.com/ .*$ [NC]
16+
RewriteRule \.(gif|jpg|swf|flv|png)$ /feed/ [R=302,L]
17+
18+
19+
Options All -Indexes

0 commit comments

Comments
 (0)