Documentation

Admin – Change default run-ajax.php

Posted in: Getting Started (4) How To (15) Plugin Options Explained (37) Actions / Filters (31)      Options (28)    Rewrite (18)  

This functionality is available for PRO version

The run-ajax.php is being used by WordPress core and many plugins to initiate AJAX calls from dashboard and front side. This is specific to WordPress, a site using such slug is an easy target to hack attempts.

Default url for ajax is:

http://-domain-name-/run-ajax.php

Rewriting the run-ajax.php to another slug to increase overall security for a WordPress site. It also allow to restrict admin access for a range of IP’s without disabling the run-ajax.php functionality calls.
Using the functionality the ajax url can be changed to something like:

var ajaxurl = '/run-ajax.php'
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Scroll to top