Title: [Plugin: WP-Adminprotection] Static IP
Last modified: August 19, 2016

---

# [Plugin: WP-Adminprotection] Static IP

 *  [onewalrus](https://wordpress.org/support/users/onewalrus/)
 * (@onewalrus)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/)
 * Although I have a static IP, if my address would change what file would I edit
   to regain access to the backend?
 * [Relates to: [http://wordpress.org/extend/plugins/wp-adminprotection/](http://wordpress.org/extend/plugins/wp-adminprotection/)]

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

 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/#post-714762)
 * According to the FAQ for that plugin, if your IP changes, all you can do is rename
   or delete the plugin by FTP (or SSH if you have shell access on your server).
 * See: [http://wordpress.org/extend/plugins/wp-adminprotection/faq/](http://wordpress.org/extend/plugins/wp-adminprotection/faq/)
 *  [xzeed](https://wordpress.org/support/users/xzeed/)
 * (@xzeed)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/#post-714872)
 * The Plugin is designed for an Intranet Solution.
    In the next Version I’m gonna
   add an IP-Range filtering system. So you can block users from other countries,
   etc. This v1.0 was just the 1st release. An update will be available next week.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/#post-714875)
 * This seems like a lot of work for what is basically three lines in an .htaccess
   file in the wp-admin directory.
 * Create a new .htaccess in the wp-admin directory. Put something like this in 
   it:
 *     ```
       Order Deny,Allow
       Deny from all
       Allow from 1.2.3.4
       ```
   
 * Do you work from multiple IP addresses? Then use this:
 *     ```
       Order Deny,Allow
       Deny from all
       Allow from 1.2.3.4 5.6.7.8
       ```
   
 * Multiple IPs must be space separated.
 * Want a range? This one will allow everything in 1.2.*
 *     ```
       Order Deny,Allow
       Deny from all
       Allow from 1.2
       ```
   
 * Or perhaps you want to be really specific and use a netmask:
 *     ```
       Order Deny,Allow
       Deny from all
       Allow from 1.2.0.0/255.255.0.0
       ```
   
 * Or maybe just specify it in a different way:
 *     ```
       Order Deny,Allow
       Deny from all
       Allow from 1.2.0.0/16
       ```
   
 * These are also faster than any plugin, due to there being no PHP overhead.
 *  [xzeed](https://wordpress.org/support/users/xzeed/)
 * (@xzeed)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/#post-714879)
 * Sure htaccess is easier, but a random user got no clue about sth like that.
 * Maybe I rewrite the plugin so you got a management for the htaccess so the plugin
   creates it on-the-fly.
    Thx for your input.
 *  [inetgate](https://wordpress.org/support/users/inetgate/)
 * (@inetgate)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/#post-714966)
 * Can I specify CIDR addr, such as 192.168.2/24 with this plugins?
 *  [xzeed](https://wordpress.org/support/users/xzeed/)
 * (@xzeed)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/#post-714967)
 * In the next release you can define IP-Ranges.
    I have no clue if I can get the
   subnet mask via PHP to check a CIDR address.

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

The topic ‘[Plugin: WP-Adminprotection] Static IP’ is closed to new replies.

 * 6 replies
 * 5 participants
 * Last reply from: [xzeed](https://wordpress.org/support/users/xzeed/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/static-ip/#post-714967)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
