Skip to content

Commit

Permalink
added rest-api and xmlrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
sesn committed Dec 5, 2018
1 parent 48920df commit ef9a781
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Go Live Security List

## 1. Protect .htaccess

```htaccess
```apacheconf
<files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
Expand All @@ -14,7 +14,7 @@ Go Live Security List

## 2. Protect wp-config.php

```htaccess
```apacheconf
<files wp-config.php>
order allow,deny
deny from all
Expand Down Expand Up @@ -92,6 +92,29 @@ Pointing REST API to 404 page
RewriteRule ^wp-json.*$ 404.html
```

## 9. Disable PHP Execution

In `wp-includes` and `uploads`

```apacheconf
<Files *.php>
Order Allow, Deny
Deny from all
</Files>
```

## 10. Disable XML-RPC

```apacheconf
<Files xmlrpc.php>
order deny,allow
deny from all
allow from `ip_address`
</Files>
```

Enable this features if only updating the content using remote access

## Credits

- https://www.cloudways.com/blog/protect-wordpress-with-htaccess/
Expand Down

0 comments on commit ef9a781

Please sign in to comment.