Title: block admin only?
Last modified: January 26, 2017

---

# block admin only?

 *  Resolved [dreamsign](https://wordpress.org/support/users/dreamsign/)
 * (@dreamsign)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/block-admin-only/)
 * It seems that the plugin makes it possible to block access to the admin area 
   alone, but when I try to do that, it blocks people in blocked countries from 
   accessing at least some front end pages.
 * What am I doing wrong?
 * thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/)
 * (@tokkonopapa)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/block-admin-only/#post-8704120)
 * Hi [@dreamsign](https://wordpress.org/support/users/dreamsign/),
 * > It seems that the plugin makes it possible to block access to the admin area
   > alone,
 * Yes it does, unless you enable “**Block by country**” at “**Front-end target 
   settings**” section.
 * > but when I try to do that, it blocks people in blocked countries from accessing
   > at least some front end pages.
 * In this case, you can find that accesses not in the “**Public facing pages**”
   but in other target such as “Admin area” on “Logs” tab. So could you copy and
   past that accesses to this topic like this?:
 *     ```
       2017-01-27 07:48:26	XXX.XX.XX.XX	US	wp-zep
       Request:
       GET[XX]:/blog/wp-content/plugins/ip-geo-block/samples.php
       User agent:
       Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)
       HTTP headers:
       HTTP_X_FORWARDED_FOR=XXX.XX.XX.XX,HTTP_FROM=bingbot(at)microsoft.com
       $_POST data:
       ```
   
 * Thanks.
    -  This reply was modified 9 years, 4 months ago by [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/).
    -  This reply was modified 9 years, 4 months ago by [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/).
 *  Thread Starter [dreamsign](https://wordpress.org/support/users/dreamsign/)
 * (@dreamsign)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/block-admin-only/#post-8704344)
 * i think i’ve figured it out.
 * the pages being blocked are password protected, and ‘password protected’ is one
   of the options under Login Form.
 *  Plugin Author [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/)
 * (@tokkonopapa)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/block-admin-only/#post-8704437)
 * I see.
 * So you should uncheck “**Password protected**” at “**Login form**” in “**Back-
   end target settings**” section. Because if someone accesses a password protected
   page on front-end then WordPress redirects to login page. But when you enable“**
   Password protected**“, this plugin validates its country code.
 * Does this make sense?
 *  Thread Starter [dreamsign](https://wordpress.org/support/users/dreamsign/)
 * (@dreamsign)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/block-admin-only/#post-8704461)
 * yeah. i unchecked “password protected”
 * thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘block admin only?’ is closed to new replies.

 * ![](https://ps.w.org/ip-geo-block/assets/icon-128x128.png?rev=1148568)
 * [IP Geo Block](https://wordpress.org/plugins/ip-geo-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip-geo-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip-geo-block/)
 * [Active Topics](https://wordpress.org/support/plugin/ip-geo-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip-geo-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip-geo-block/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [dreamsign](https://wordpress.org/support/users/dreamsign/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/block-admin-only/#post-8704461)
 * Status: resolved