Admin – Change default run-ajax.php

Posted in: Getting Started (4) Plugin Options Explained (35) Actions / Filters (30) How To (14)      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:


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