Hi @mohsen2677, thank-you for your question.
We aren’t able to discuss or support our Premium plugin here as the forum rules allow us to support the free product only. However, Country Blocking sounds like the feature you’re looking for as you can allow certain countries access to the site but disallow access to the login. If you have further questions about that, please speak to our excellent team at presales @ wordfence . com to see if that would be correct for your use-case.
Whilst there are ways of automatically blocking IPs that attempt to access?certain pages/paths on your site with Wordfence Free, there would be no way of then opening the /wp-admin pages back up to your approved IPs without also exempting them from?all?other Wordfence rules, which can be dangerous.
There?are?.htaccess?changes that could help give the desired result, although we’re unable to support custom code or changes outside of the Wordfence plugin here. If admins don’t have a static IP it may also require regular maintenance to ensure nobody loses access: https://stackoverflow.com/questions/4400154/deny-all-allow-only-one-ip-through-htaccess
Many thanks,
Peter.