-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
53 lines (47 loc) · 1.29 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#===Default htaccess codes===
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
#===Protect htaccess===
<Files ~ “^.*\.([Hh][Tt][Aa])”>
order allow,deny
deny from all
satisfy all
</Files>
#===Disable scanners in Your Website Vulnerability===
# BEGIN block author scans
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=\d+) [NC]
RewriteRule .* – [F]
# END block author scans
#===Block Suspicious IP===
# IP block
Order Allow,Deny
Allow from all
Deny from 1.186.48.58, 65.30.114.186, 69.143.222.95
#===Individual File Protection===
# Protect the .htaccess
<files .htaccess=””>
order allow,deny
deny from all
</files>
# All PHP Handlers (v-5.4 to 8.1 or updateable)
### https://www.bluehost.com/help/article/adding-handlers-to-change-your-php-version ###
#===Add Handlers To Change PHP Version===
<IfModule mime_module>
AddHandler application/x-httpd-php71 .php .php7 .phtml
</IfModule>
#===Increase media upload file size and memory limit and so on.===
php_value max_input_vars 5000
php_value max_execution_time 300
php_value post_max_size 128M
php_value upload_max_filesize 128M
php_value memory_limit 256M