How to prevent members from accessing "/wp-admin/"

Discussion in 'Troubleshooting' started by luxman, Aug 10, 2011.

  1. luxman

    luxman Member

    Joined:
    Mar 31, 2011
    Messages:
    70
    I would like to prevent them from accessing the administration panel from within wordpress.

    I know we can set their profile permissions by setting "none" or "subscriber" but is there a way to block them from accessing their profile?
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    You could use aMember to protect the wp-admin directory.
  3. luxman

    luxman Member

    Joined:
    Mar 31, 2011
    Messages:
    70
    That doesnt work since members can still login to access the page.

    I would like to block everyone, except for myself. Perhaps a different plugin?
  4. jackgordon

    jackgordon aMember Pro Customer

    Joined:
    Mar 23, 2009
    Messages:
    269
    It should work if you created a new product, gave it exclusive permissions to that directory, then subscribed only yourself to it.
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Do you have a fixed IP address? If so then you could add this to an .htaccess file in the root of your wp-admin folder:

    Code:
    order deny,allow
    deny from all
    allow from xxx.xxx.xxx.xxx
    where xxx... is your IP

Share This Page