Placing the htaccess file in the wp-admin directory did not work for me so I went a different route and it seems to be working very well. Below is what I have in my main htaccess file:
<files wp-login.php>
# set up rule order
order deny,allow
# default deny
deny from all
allow from x.x.x.x
allow from y.y.y.y
allow from z.z.z.z
</files>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
Related Posts:
- Change Login URL Without Plugin
- Securing wp-admin folder – Purpose? Importance?
- Options for restricting access to wp-admin
- How to change “wp-admin” to something else without search-replacing the core?
- Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
- How to Change The WordPress Login URL Without Plugin
- 404 redirect wp-login and wp-admin after changing login url [closed]
- Couple questions about .htaccess, login page, updates
- Can I rename the wp-admin folder?
- “Too many redirects” ONLY when trying to access wp-admin page
- Use a different domain for SSL
- What is the best method to close off the backend?
- .htaccess in wp-admin produces a redirect loop
- Share same domain for wp-admin but for different website
- Wrong canonical link on wp-admin pages
- Can I rename the wp-admin folder?
- WordPress in sub directory wp-admin problem
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Can’t access admin dashboard with wp-admin without /index.php after it
- Why should I password protect WP-Admin?
- Call to undefined function insert_with_markers
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Change WP-Login or WP-Admin
- Which HTTP headers to use for subdomain embedding?
- CDN + WP Admin Query – .htaccess redirection
- From 403 error to 500 internal server error
- FORCE_SSL_ADMIN not working
- Cannot Access Admin Area After Migration
- Wrong wp-admin URL
- Limit access to wp_admin
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- password reset link being sent as HTTP?
- How do I host WordPress on a hidden domain through a reverse proxy?
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- Do I have to face security problems if I changing default role to Contributor
- Hide username discovery
- Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
- Renaming wp-admin without hard-coding it. Is it really possible?
- Need help for WordPress User Session Management?
- How login is possible, if I deny login page via .htaccess with allow ip
- Developer/Designer asking for admin access
- Redirect an entire WordPress site on a subdomain, except wp-admin
- Blank page when viewing wp-admin
- Is WordPress secure enough for a multi-user article directory?
- wp-admin going directly to 404
- WordPress /wp-admin redirect to wrong port in docker
- wp-admin and wp-login.php not Accessible after Cloudflare
- Can I rename the wp-admin folder?
- CSRF attack to create USER
- Disabling WP-Admin Caching in htaccess
- Can I rename the wp-admin folder?
- Limit access to wp-admin but still be able to log in from different locations?
- SSL doesn’t deliver parts of WordPress Administration Module
- Why WordPress not logout after I have close my browser?
- Making WP Admin Folder accessable JUST under a different link
- How to protect wp-admin from third party access?
- is exposed wp-admin site a serious security vulnerability
- How to remove screen options and help links in the admin area?
- wp_list_tables bulk actions
- How do I find all admin users using phpmyadmin?
- Restrict access to admin but allow admin_post hook
- TinyMCE Autoresize
- Activating Child Theme Breaks Website, Blank Page, Error 500
- Create Read Only Admin
- wp-admin is redirecting to back to home page (localhost)
- Using /wp-admin works, using /login gives a 404. Why?
- How to debug “You do not have sufficient permissions to access this page”? [closed]
- How to check if upload window came from the featured image link?
- admin_post action not usable if admin access denied to user
- Can’t log into wp-admin after migration from localhost to server
- Linking table cells to network folders
- Remove bulk option row
- Admin menu in front-end
- Require Login Redirect to Login Page
- How to fix ob_end_flush() failed to send buffer of zlib output compression (1)?
- Delete the “wp-admin” folder – what could go wrong?
- Nickname field isn’t appearing in Admin
- Why is my ‘export’ option missing?
- Change users.php WP_User_Query
- Is it possible to display my theme sidebar in wordpress admin?
- wp-admin: “Sorry, you are not allowed to access this page.”
- How to access wordpress from domainB which is installed at domainA
- How to optimize the opening speed of admin panel?
- How to change the URL of sub menu page?
- Change wordpress admin home page
- Strange wp admin edit buttons issue
- Cannot access wp-admin after migration to another place
- Regular users logs in as ADMIN if Admin logged in recently
- Enable Excerpt field inside the post editor for pages
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
- OSX El Capitan local install Maximum upload file size: 2 MB But php.ini set to 64M
- Is it possible to outsource wp-admin to another server?
- Wp mwnu not works at all
- Can’t log into WordPress after domain change
- Search box for hierarchical taxonomies in admin interface
- Custom Admin Message from external source to multiple users
- How can visitors redirect wp-admin to the homepage?
- Redirecting the user to the admin table area after publishing a post, getting an invalid response error?
- WordPress Localhost migration issue