Is it possible to block access to a directory through the web.config in IIS (excluding a small set of IPs) but allow through one specific file for everyone.
The reason I ask, I want to block the wp-admin directory in WordPress but the admin-ajax.php does need to be externally accessible.
Thanks.