Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

WordPress Security – How to block alternative WordPress access

I figured I’d just look in the Android application’s source code to see how it communicates. You can quickly see XML-RPC in the source.

So another way to access the blog is using WordPress XML-RPC support. It was improved and enabled by default in version 3.5 very recently. I don’t understand why they brought it back without the option to turn it off. It was on until 2.6, then turned off by default, and now it’s back in 3.5

So I found this post. It exaplains how to disable XML-RPC with one line of code which WordPress respects:

In your wp-cinfig.php file, add this line after require_once(ABSPATH . 'wp-settings.php');:

add_filter('xmlrpc_enabled', '__return_false');

This entirely disabled any access I had from the Android application. As of now I’m not getting any site lockout notifications by bad logins, mission accomplished!

Note: Before disabling, I did a test to make sure BWPS does scan bad logins from xmlrpc as well. Locked my self out using my phone on a 3g and got a notification later by email. In case it wasn’t then this whole theory would be questionable. So do yourself a favor and disable xmlrpc now! Unless you actually use it and you’re not under constant attacks from Turkish ip addresses.

Related Posts:

  1. How to Get Logged-in to “Remote WP Site” from my local script (in Same Browser)?
  2. Is there any way to rename or hide wp-login.php?
  3. Increase of failed login attempts, brute force attacks? [closed]
  4. How to fake a WordPress login?
  5. Brute force attack?
  6. Receiving “This content cannot be displayed in a frame” error on login page
  7. Give visitor access to password protected page/post via external script
  8. Websites defaced by uploading script using theme editor
  9. Make wordpress admin failed login attempt return 401
  10. Remote REST request to check login status
  11. WordPress login urls
  12. Store brute-force IP addresses
  13. How to create a private login page for admin.?
  14. Protecting WordPress login page
  15. wp-admin folder, brute force, and password protection
  16. Sniffing wordpress user’s credentials
  17. What would be the best way to implement Magic Link logins in WordPress?
  18. disable site_url redirect in wp-login.php
  19. SSO to WP, from a non-wp site on a different domain and server
  20. Login with serialized password
  21. Does WordPress (or a plugin) reveal login credentials to admin?
  22. Is wp_login_form secure on a non secure page?
  23. Is the login encrypted before it is sent? If so how to do I encrypt it the same way?
  24. WordPress login security
  25. Why isn’t the login page rate limited by default?
  26. How can I password protect a WordPress site without requiring users to log in?
  27. Input sanitation
  28. How to Prevent Brute Force Attack on WordPress
  29. Advice on redirect to lock site from unauthorized users
  30. Where is the php file, that does the checks for login information?
  31. Error on WordPress Login
  32. Access log “POST /wp-login.php HTTP/1.0” 400
  33. force login loophole
  34. I need to find which is the file that checks the DB for correct login (username, password)
  35. How to create separate login for authors/moderators/subscribers?
  36. How to invalidate `password reset key` after being used
  37. Set logged in user based on API response
  38. Site is not loading after relogin attempts on SSL
  39. Log in to wordpress after executing another form function
  40. Some crawlers/bots attempting to login with very good guesses. How?
  41. Login user after registration programmatically
  42. Hide wp-login.php but not the widget
  43. How login is possible, if I deny login page via nginx?
  44. WordPress EC2 Security Practices
  45. In Django, how do I know the currently logged-in user?
  46. Can I programmatically login a user without a password?
  47. Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
  48. What’s the easiest way to stop WP from ever logging me out
  49. How to login with email only no username?
  50. How can I redirect user after entering wrong password?
  51. Login page ERROR: Cookies are blocked due to unexpected output
  52. Separate registration and login for different roles
  53. SSO / authentication integration with external ‘directory service’
  54. Preventing session timeout
  55. How reduce wordpress login session timeout time?
  56. How to prefill WordPress registration with social details
  57. Check for correct username on custom login form
  58. Disallow user from editing their own profile information
  59. I can’t access my site via wp-admin
  60. ‘Password field is empty’ error when using autofill in Chrome
  61. Removing username from the ‘wordpress_logged_in’ cookie
  62. How to show ‘login error’ and ‘lost password’ on my template page?
  63. What is $interim_login?
  64. Custom login form
  65. How to prefill the username/password fields on the login page
  66. wp_signon returns user, but the user is not logged in
  67. Adding extra authentication field in login page
  68. Prevent wp_login_form() from redirecting to wp-admin when there are errors
  69. Redirect user using the ‘wp_login_failed’ action hook if the error is ’empty_username’ or ’empty_password’
  70. wp_signon() does not authenticate user guidance needed
  71. What exactly is ReAuth?
  72. What are the differences between wp_users and wp_usermeta tables?
  73. Can someone explain what wp_session_tokens are, and what are they used for?
  74. Login members using web services
  75. Make my wordpress blog remember my login “forever”
  76. How to check in timber if user is loggedin?
  77. How do I change the language of only the login page?
  78. Disable WordPress 3.6 idle logout / login modal window / session expiration
  79. Stop WordPress from logging me out (need to keep me logged in)
  80. Woocommerce registration page [closed]
  81. How to disable autocomplete on the wp-login.php page
  82. Share login data/cookies between multiple installations
  83. Synchronize WordPress user accounts across multiple domains and installations without using WordPress MU
  84. How to pass users back and forth using session data?
  85. How do I change the logo on the login page?
  86. Why does WordPress hide the reset password key from the URL?
  87. Is it possible to sign in with user_email in WordPress?
  88. How to use current_user_can()?
  89. Avoid to load default WP styles in login screen
  90. WordPress registration message
  91. how to display the wordpress login and register forms on a page?
  92. Limiting sessions to one IP at a time
  93. Does wp_logout_url() destroy a session? (Logging out question)
  94. How can I send a welcome email to a user AFTER they login for the first time?
  95. Can not login with correct username and password
  96. Website Visible only to Registered users
  97. How can i increase the login expiration length?
  98. How do I use add_action from a class method?
  99. How to remove the WordPress logo from login and register page?
  100. How can I add a custom script to footer of login page?
Categories login Tags login, remote, remote-login, security
Multisite development environment
Retrieving data from specific multisite blog

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress