nginxconfig.io
nginxconfig.io copied to clipboard
wordpress.conf disable xmlrpc service by default
Sorry for not following the template. It's a straightforward question.
By enabling "WordPress-specific rules", the following codes will be added to the wordpress.conf:
# WordPress: deny general stuff
location ~* ^/(?:xmlrpc\.php|wp-links-opml\.php|wp-config\.php|wp-config-sample\.php|readme\.html|license\.txt)$ {
deny all;
}
However, this disables xmlrpc feature, which disables WordPress mobile and desktop applications to access the site.
Should we consider adding a notice or make it optional?
Hey! I think either would be a good solution here -- there should be patterns in the source already for showing warnings to a user, or a secondary toggle option would also be a good way to solve this.
Hi Matt! Considering most people using nginxconfig.io are noobs (I am a 100% noob also), I'd say it's better to have a secondary toggle option and add some comments.
For example:
[ ] Allow xmlrpc access
- xmlrpc allows you to control WordPress sites by using WordPress applications or other plugins (like Jetpack) if you use them.
Regards, Andy