26 lines
662 B
ApacheConf
26 lines
662 B
ApacheConf
ServerSignature Off
|
|
Options -indexes
|
|
|
|
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
|
|
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
|
|
RewriteRule ^(.*)$ - [R=403,L]
|
|
|
|
RewriteCond %{REQUEST_METHOD} ^(GET|POST|PUT|PATCH|DELETE) [NC]
|
|
RewriteCond %{REQUEST_URI} ^.*wp-json/wp/ [NC]
|
|
RewriteCond %{REMOTE_ADDR} !^212\.63.
|
|
RewriteCond %{REMOTE_ADDR} !^81\.231.
|
|
RewriteCond %{REMOTE_ADDR} !^194\.68\.237\.
|
|
RewriteRule ^(.*)$ - [F]
|
|
|
|
# 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
|