• Resolved ukraine777

    (@ukraine777)


    Hello! Two-Factor Authentication does not protect well if other people have access to the mailbox. I need to restrict access to the admin by ip, everyone has had this for a long time, but I can’t find it in ithemes security pro. Don’t have that feature you need?

    How can I allow to enter the admin from the right IP?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The iTSec plugin does not include such feature.

    But you can simply add the lines below to the .htaccess file (Apache):

    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
    RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
    RewriteRule ^(.*)$ - [R=403,L]
    </IfModule>

    Replace 1\.2\.3\.4 with your IP.

    +++++ To prevent any confusion, I’m not iThemes +++++

    Thread Starter ukraine777

    (@ukraine777)

    thanks, but I have a PHP FastCGI (Nginx + PHP-FPM) server. Nginx doesn’t work with .htaccess file. how to be in my case? What should be added and where?

    +++++ it’s too bad that iThemes doesn’t have such an important feature +++++

    Plugin Support chandelierrr

    (@shanedelierrr)

    @ukraine777 this article might be of help. Best to back up your site before testing.

    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @ukraine777, I hope the information provided helped resolve the issue. Since we haven’t received a response, I’ll mark this post resolved. If you still need some assistance, feel free to open a new support topic, and we’d be happy to assist. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘admin login by ip ?’ is closed to new replies.