• marisol3007

    (@marisol3007)


    Hi, my site is running behind .htaccess.

    In .htaccess i send everything “not from Switzerland” to hell; while “hell” is simply localhost. So, if your IP is not from Switzerland you don’t get any answer, nothing at all (“silence”).

    Now, the loopback test is showing up every minute in the website’s own health-check, and failing (because of redirection in .htaccess).

    I am missing a switch (somewhere in the settings) to stop this test showing up for nothing. Abortion is useless, because cron starts the test every minute, it’s endless.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The loopback test should only execute once by default when you load the site health page. However, there are regular heartbeat Ajax requests, sometimes every couple minutes, if you are logged in. It is possible for themes or plugins to alter this behavior.

    The ‘pre_http_request’ filter can be used to short-circuit certain HTTP requests by returning a fake response array. The caller will think it got a valid response, but the request never actually went out. You have to be sure you’re only doing this for appropriate requests. For other requests that should be handled normally your callback should return false.

    Your redirects should check the remote IP address. If it belongs to your server, there should be no redirect. The remote IP is about the only request data that cannot be spoofed, so relying upon it would not diminish security.

Viewing 1 replies (of 1 total)
  • The topic ‘can’t abort Loopback Test’ is closed to new replies.