YAWSP is a minimal plugin for enhancing the security and privacy of WordPress websites.
- Disable the XML-RPC API.
- Disable the REST API endpoint
/wp-json/wp/v2/users
to prevent the leakage of usernames. - Disable author archvies completely so that e.g.
/?author=1
does not yield a username. - Disable the user sitemap to prevent the leakage of usernames.
- Replace the author display name with the website tile (e.g. in RSS feeds).
- Prevent user enumeration through login error messages.
- Disable custom CSS classes for author comments containing user names.
- Create an anti-spam honeypot: Set the "website" field for comments as an invisible field that must not be filled.
- Log failed and successfull logins to the WordPress backend to log files.
- Prevent users from editing source code files using the built-in file editor.
- Add HTTP Security Headers
- Add output escaping to
the_title
to prevent XSS. - Limit login attempts to prevent brute-force attacks.
- Gravatar (used to show avatars for comments) is disabled. Instead, local images are shown.
- Remove cookie consent field in comments so that no cookies are to be saved.
- Replace a comment's IP address with "127.0.0.1" when the comment is approved or classified as spam.
- Replace a comment's e-mail address with "comment-ID@example.com when the comment is approved or classified as spam.
- Replace embedded YouTube videos with youtube-nocookie.com embedds.
- Remove Wordpress version information from the generator tag in the HTML head, the generator info in RSS feeds and script and stylesheet links (e.g.
abc.js?ver=1.0.1
). - Remove links to the REST Api from HTML head and HTTP headers.
- Remove shortlink from HTML head and HTTP headers.
- Remove links to
wlwmanifest.xml
andxmlrpc.php?rsd
from HTML head.
This plugin is licensed under the GNU General Public License v3.0.
The source code for this project is available on GitHub.