Admin Block Country

Mô tả

Easy to use plugin, that blocks access to your wp-admin area by country. Uses geoip-api-php as the library to work out the visitor’s country.

Built by The Marketing Mix Perth:

Cài đặt

1) Install WordPress 5.4 or higher

2) Download the latest from:

3) Login to WordPress admin, click on Plugins / Add New / Upload, then upload the zip file you just downloaded.

4) Activate the plugin.

Đánh giá

1 Tháng Tư, 2020
Habe alle Länder, ausser meines, gesperrt und mit dem VPN getestet: Es funktioniert bestens. Einfach daran denken, dass wenn ihr in die Ferien geht, ihr das Land ausschaltet, sonst kommt ihr nicht auf eure Seite (bei Bedarf). Habe es mit dem neuen WP 5.4 getestet. Plugin Wordfence ist auch aktiv.
9 Tháng Mười Một, 2019
The reviews here are very old, so I had a look at this plugin myself. I got tired of all these hack attempts, so this seemed like a nice way to keep out most of the trash. It's very user friendly, after installation you get a list of countries you want to block admin access from, and a "select all" option. Your own country is not on the list so you can't accidentally block yourself. After that, I could still access the admin section of my site, but when trying from a VM in another country, access was blocked. There was no output, just an empty page, which is fine to me. So, a simple plugin but does exactly what it should. By the way, for some IP addresses the country is not known or incorrect, so no GeoIp application is perfect.
24 Tháng Ba, 2017
Hi I have discovered this plugins and I'm testing it in WP Versión 4.7.3. It looks good. I have used to modify my location "Just Proxy VPN" Chrome extension. Dani
17 Tháng Mười Hai, 2016
Well, I do not see it working. I have blocked all the countries and I have logged in with the navigator Tor who identified me in Germany (blocked) and has let me access the administration panel without problems
3 Tháng Chín, 2016
Plugin does not seem to work at all. Wordfence reports several failed logins from many foreign countries even though local IP database is uploaded, backup external IP is set and all foreign countries are blocked. Wordfence live traffic login and logouts reports messages like this still after activation of Admin Block Country plugin: Dipolog City, Philippines attempted a failed login as "****". IP: [block] Hostname: 26.9.2015 16.51.19 (42 minutes ago) Italy Rome, Italy attempted a failed login as "****". IP: [block] Hostname: 26.9.2015 15.40.52 (1 hour 53 mins ago) Egypt Giza, Egypt attempted a failed login as "****". IP: [block] Hostname: 26.9.2015 15.35.33 (1 hour 58 mins ago) Turkey Ankara, Turkey attempted a failed login as "****". IP: [block] Hostname: 26.9.2015 15.31.49 (2 hours 2 mins ago) Serbia Belgrade, Serbia attempted a failed login as "****". IP: [block] Hostname: 26.9.2015 14.32.22 (3 hours 1 min ago) Argentina Ezpeleta, Argentina attempted a failed login as "****". IP: [block] Hostname: 26.9.2015 14.02.15 (3 hours 31 mins ago)
Đọc tất cả 22 đánh giá

Người đóng góp & Lập trình viên

“Admin Block Country” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi


  • Fixed more bugs caused by debug=true


  • Fixed more bugs caused by debug=true


  • Fixed up errors from debug=true.


  • Links up to GeoCity 2.0


  • Fixed the IP services. Removed IP service list and set it to only use


  • Fixed security issue which blocked requests to


  • Improved code.


  • I removed Who country service. You can now upload your own local ip database from maxmind. I’ve added in the instructions.


  • New IP to country service – utrace. Example


  • Removed Tom M8te dependency.


  • Fixed bug with Admin “Select All” checkbox. Played havac with service selector. Never noticed it before.


  • Fixed bug with geoplugin.


  • Added in ip to country service which is a server that I own. I noticed that the existing 2 have failed atleast once.


  • Tried Maxmind in version 3.0, but 2 of my clients couldn’t use it, so I’ve ditched it and now I use two external services:,


  • Uses another method for discovering the country of an ip address.


  • Used a different method for discovering the country of an ip address. Seems to be less memory intensive.


  • Initial Commit