Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

we are having some issues with an external developer. i am not a wp person so i turn to the masses to help out. we want to limit access to the wp-admin site to internal access only (via vpn). simply so it will not be attacked by external people. we can enumerate the admins from the site and do not want them to be phished.

the developer is saying we cant do that because the site needs to have the admin page accessible externally so the page will function. specifically the admin-ajax page.

what does the admin-ajax.php page do?

it is located in the admin section of wp.. is it accessed unauthenticated by end users? is it an unsafe practice to have this available to external users?

share|improve this question
ajax-admin.php handles.. ajax requests. Please clear your title up and the question in general, wordpress.stackexchange.com/faq – Wyck Dec 27 '12 at 15:49

2 Answers

If you want to limit access to the WP backend ( ie wp-admin ) just use an .htaccess rule on the wp-admin directory. Try : http://davidwalsh.name/password-protect-directory-using-htaccess for a general overview and http://wordpress.org/support/topic/password-protecting-wp-admin for your specific case.

share|improve this answer
Or if you'd rather do it by IP : betterwp.net/wordpress-tips/protect-wordpress-wp-admin-folder – Juicki Dec 27 '12 at 18:39

admin-ajax.php is part of the WordPress AJAX API, and yes, it does handle requests from both backend and front. Try not to worry about the fact that it is in wp-admin. I think that is a strange place for it too, but it is not a security problem in itself. How this relates to "enumerate the admins", I don't know.

share|improve this answer
would you recommend moving the wp admin page from being externally available? and do you know if doing so would disrupt anything with the ajax admin? – nick Dec 27 '12 at 16:38
I am not 100% sure what this means but if you require that access to files in wp-admin be from your VPN's IP, then yes that should mess up AJAX. AJAX calls are from the user's browser so come from the user's IP. – s_ha_dum Dec 27 '12 at 16:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.