-
Notifications
You must be signed in to change notification settings - Fork 8
/
.htaccess
31 lines (25 loc) · 867 Bytes
/
.htaccess
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
DirectoryIndex index.php
Options -Indexes
<FilesMatch "(\.inc|private|db.php|utils.php)">
order allow,deny
deny from all
</FilesMatch>
# Compress/gzip html, XML, css and js and fonts and CSV
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript font/ttf application/octet-stream
</IfModule>
# Add a far future Expires header to .gif, .jpg, .css and .js.
# TODO - Need to add a versioning system to resource URLs to make them cacheable.
<FilesMatch "\.(png|gif|jpg|js|css|ico)$">
ExpiresActive On
ExpiresDefault "access plus 1 week"
Header set ETag ""
</FilesMatch>
#400 hits/day on images
deny from 166.78.146.41
# 2K daily hits on results.php
deny from 89.45.194.39
deny from 89.45.194.40
# 500 daily hits on results.php
deny from 188.215.55.218
deny from 206.217.139.154