It appears to prevent any POST requests to wp-login.php that aren’t made from a page on my-domain.com.
When the browser sends a POST request, say after submitting a form, it will include a HTTP Referrer header telling the server where the request came from.
This theoretically prevents bots submitting POST requests directly to wp-login.php as part of a brute force attack, but the HTTP referrer is trivial to fake, so it’s not actually all that helpful.
Related Posts:
- Improve wordpress security by hiding non public resources
- File and directory permissions
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- WordPress URL/Folder ReWrite using Htaccess
- Which WordPress scripts need to be executable for a fresh installation?
- Blocking access to wp-login via htaccess not working
- Attach to wp-login.php and xmlrpc.php
- XMLRPC filtering through htaccess not working
- Restricting user login by IP address
- WordPress: Adding Security
- How do I test to ensure that my wp-config file is protected?
- WordPress not seeing .htaccess rules
- Rules in .htaccess only if the requested URL is /wp-admin
- Disable directory browsing of uploads folder
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- Selectively Disabling PHP via .htaccess in Root Directory
- Should I prevent access to .htaccess and wp-config.php files?
- Blocking wp-login in HTACCESS has also blocked password protected pages
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- Using htaccess to prevent spam through wp-comments-post.php
- How can I create a private site that is inaccessible from the outside?
- Restrict Content for only Contributors via .htaccess
- Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
- How to redirect all HTTP requests to HTTPS
- Default .htaccess file for WordPress?
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- Security and .htaccess
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- Stop WordPress and Plugins from Overwriting .htaccess
- WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
- Blog.php or how to display recent posts?
- Admin-Ajax.php, SSL, Non-SSL
- How to Block Access to Standard Login Flow and Comment Flow
- WordPress site displaying 404 for any page apart from index
- How to avoid wordpress permalink rules to inherit in a sub-folder
- Cant block wordpress readme files
- WordPress keeps deleting .htaccess file
- Prevent users from browsing through the media galleries
- .htaccess for wordpress in separate folder
- How to modify the .htaccess to force ssl on login and admin pages
- .htaccess redirects no longer work
- Exclude subfolder from WP-redirect works with html but not php files
- Server crashed trying to restore wordpress multisite, images are not found pls help
- Create subdomain masking for each user in WordPress
- Redirect from different port to subdomain – htaccess
- Question with loading 403/ 404 error pages and htaccess
- WordPress Redirect 301 register page
- Only expose routes with prefix /wp-json on WordPress using Apache
- .htaccess password protect all but one page
- Hardening wordpress: blocking /includes with htaccess
- Install a Network under a mapped domain
- Using HTACCESS for Secret Access
- htaccess – RewriteRule without redirect not working
- How to fix category url 404’s after category permalink change
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- How can I fetch the content of a post of my wordpress domain from an other domain?
- Modify the .htaccess file
- WordPress site not working after move
- blocking access to all post/tag URIs via htaccess
- sitemap contains weird links and does not contain my pages [closed]
- want to rewrite an URL in wordpress
- how to redirect 301 my old search query string to wordpress search query string?
- How to block access to files without modifying .htaccess or ngnix config? [closed]
- Allow REST API over HTTP, the rest of the site forced to HTTPS
- where to add redirection rewriterule in .htaccess file?
- Trouble adding directory rewrite to htaccess under wordpress [closed]
- Conflict with Force SSL and Rewrite Rules
- htaccess getting overwritten over and over = 404 error
- htaccess problem not being able to overwrite previous rules
- Relative links stop working after moving wordpress site from hosting to localhost
- How to rewrite 404 to home page using htaccess?
- “Oops.” error on an html file directly uploaded to a subdirectory of my WordPress site
- How do I reset a rewrite?
- VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?
- Sub domain URL slash / missing after domain and before Post & page slug
- Problem with WordPress permalinks
- Redirect wordpress site to www from non www on wordpress server
- I need to make one folder private
- Pretty Url not working on the server
- Force HTTPS for mapped domain pointing to wordpress domain
- How can I restrict access, by IP, to the `wp-admin` folder/Dashboard?
- After changing permalink, getting 404 for one particular category
- WordPress Intercepting Requests To A File In Public HTML
- Installing wordpress on subdirectory 2 levels down
- I can access subdirectory, but not files within it
- htaccess mod_rewrite not working
- Multisite permalinks for subfolder wordpress installation
- Missing visual editor after placing a redirect rule into the .htaccess file
- Redirect not working
- Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
- WordPress site not redirecting properly
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Restrict download files from not generated Urls
- How to change wordpress news root url
- Problem with All in one WP Migration – only works the home page
- .htaccess for Subdomain and Subfolder w/SSL
- WordPress sections in htaccess kills FrontPage permissions
- How can I stop WordPress from catching URL’s for static pages that I save on my server
- Enable webp support Nginx+Apache reverse proxy with moss.sh [closed]
- Browser Caching .htaccess