• Resolved JBZ

    (@mahdijbz)


    Hi there,

    I want to restrict the access to my wp-admin by ip. For example I made a .htaccess in my wp-admin folder like following

    
    # limit access to .htaccess
    <files ~ "^.*\.([Hh][Tt][Aa])">
    order allow,deny
    deny from all
    satisfy all
    </files>
    # Limit access
    Order deny,allow
    Deny from all
    # some ip 
    allow from 95.135.80.26
    

    But when I do this, the health check plugin shows the following error:

    2 Critical issues

    1. ‘Background updates are not working as expected Security’

    Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.

    > Error: A plugin has prevented updates by disabling wp_version_check().
    > Passed: No version control systems were detected.
    > Passed: Your installation of WordPress doesn’t require FTP credentials to perform updates.
    > Passed: All of your WordPress files are writable.

    2. ‘Your site could not complete a loopback request Performance’

    Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.

    The loopback request to your site failed, this means features relying on them are not currently working as expected.

    > Error encountered: (0) Too many redirects

    Question: What do I need to white list in my .htaccess to make sure background update can be run without problem.

    • This topic was modified 5 years ago by JBZ.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Try adding localhost (127.0.0.1) as well as your server’s own IP address to the list of all allowed IPs.

    Thread Starter JBZ

    (@mahdijbz)

    @sterndata Great. I did and it resolved. thanks

    • This reply was modified 5 years ago by JBZ.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Background updates not working when limit the access to wp-admin by ip’ is closed to new replies.