Forums

[Plugin: WP-Adminprotection] Static IP (7 posts)

  1. onewalrus
    Member
    Posted 1 year ago #

    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/ ]

  2. LesBessant
    Moderator
    Posted 1 year ago #

    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/

  3. xzeed
    Member
    Posted 1 year ago #

    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.

  4. Otto42
    Moderator
    Posted 1 year ago #

    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.

  5. xzeed
    Member
    Posted 1 year ago #

    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.

  6. inetgate
    Member
    Posted 1 year ago #

    Can I specify CIDR addr, such as 192.168.2/24 with this plugins?

  7. xzeed
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic