• Resolved tomgelder

    (@tomgelder)


    Immediately after updating to WP 4.0, my host, Site5, blocked my IP. When I contacted them, they said it was

    due to numerous attempts to access the site through /main/wp-admin/admin-ajax.php

    (You see main because I did the thing where you put your root WP install in its own directory.)

    They said it was probably a plugin. I looked in the code for my plugins and deactivated all the ones that called admin-ajax.php. They lift the block, I login, blocked again.

    I’m testing to see how many times admin-ajax.php get’s called during various tasks and comparing that to the number of calls to admin-ajax.php on a different WP install on the same domain. So far, when I login with the offending account, I see 3-5 hits containing admin-ajax.php (regardless of whether or not I have plugins activated) and when I login with a different WP on the same domain, I see 1 hit to admin-ajax.php.

    Is it possible that WP 4.0 is not playing nice with having my files in a subdirectory? If not what else could be going on here?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The WordPress admin interface itself makes a very large number of requests to the admin-ajax.php file, so you should tell your host that this is perfectly normal and that they should stop blocking you for it.

    A lot of the admin interface is actually assorted javascript code. Whenever that code needs to talk to the admin again to get data or display things from the server, it uses admin-ajax.php to do so. The admin-ajax.php is the standard javascript call handler for WordPress.

    Different pages will make different requests to admin-ajax.php at different times. The edit page, for example, will make such a request when you paste a youtube link into a post. This is to get the embed code for that link and display it properly in the editor. This is one of the new features of 4.0.

    Thread Starter tomgelder

    (@tomgelder)

    Thanks for the response, Otto.

    That’s about what I was starting to figure. My host being too overprotective. I’ll let them know what’s up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calls to admin-ajax.php Getting My Site Blocked’ is closed to new replies.