Title: Problem with Click Tracking wp-admin/admin-ajax.php
Last modified: August 30, 2016

---

# Problem with Click Tracking wp-admin/admin-ajax.php

 *  Resolved [vestaxpdx](https://wordpress.org/support/users/vestaxpdx/)
 * (@vestaxpdx)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-click-tracking-wp-adminadmin-ajaxphp/)
 * Hi,
 * I have a major problem with the Ajax click tracking. We secure our wp-admin folder
   with additional HTTP authorization.
 * So when people click an advert they get a username password prompt because wp-
   admin/admin-ajax.php is being called in the background to track the click!
 * Could you not run your own Ajax file through your plugin directory which would
   not be behind wp-admin folder perhaps?
 * I can’t believe I am the only one who secures my wp-admin folder and has this
   issue…
 * I hope you can help.
 * Cheers
 * [https://wordpress.org/plugins/adrotate/](https://wordpress.org/plugins/adrotate/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-with-click-tracking-wp-adminadmin-ajaxphp/#post-6819765)
 * There is no need to do a folder protection like that, if it were useful – More
   people would do it 🙂
    AdRotate uses the ‘official’ method for using admin-ajax
   as promoted by WordPress itself. I’m not changing that.
 *  Thread Starter [vestaxpdx](https://wordpress.org/support/users/vestaxpdx/)
 * (@vestaxpdx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/problem-with-click-tracking-wp-adminadmin-ajaxphp/#post-6819767)
 * Hi,
 * Thanks for replying.
 * Ok appreciate that but I find on high volume sites I have found this invaluable
   by blocking IP’s before they even get to wp-admin login screen and stops hackers
   even having a chance to exploit files under wp-admin folder.
 * Here is a fix for people who still like to add an additional layer of security
   to WordPress admin.
 * Place this in your /wp-admin/.htaccess
 *     ```
       <Files admin-ajax.php>
           Order allow,deny
           Allow from all
           Satisfy any
       </Files>
       ```
   
 * Thanks
 *  [hakonzen](https://wordpress.org/support/users/hakonzen/)
 * (@hakonzen)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-click-tracking-wp-adminadmin-ajaxphp/#post-6819845)
 * Hi [@vestaxpdx](https://wordpress.org/support/users/vestaxpdx/) !
    I don`t know
   if this is relevant to your solution, but I keep getting warnings from siteground
   that adrotate runs a lot of script executions on the admin-ajax.php witch makes
   the site exceed the number of allowed executions on the shared hosting account.
   Is there a way to avoid this?
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-click-tracking-wp-adminadmin-ajaxphp/#post-6819846)
 * If your host sets limits on that and you repeatedly exceed those consider getting
   better hosting.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with Click Tracking wp-admin/admin-ajax.php’ is closed to new
replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-click-tracking-wp-adminadmin-ajaxphp/#post-6819846)
 * Status: resolved