• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / PER USER Whitelist IP Address, Deny all others

PER USER Whitelist IP Address, Deny all others

  • Unknown's avatar
    artesaniamxusa · Member · Oct 24, 2022 at 11:06 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I need to set specific user to only be allowed login access from a specific address. Is there a plugin or httacess code to set this?

    I found this article

    https://www.wpbeginner.com/wp-tutorials/how-to-limit-access-by-ip-to-your-wp-login-php-file-in-wordpress/


    order deny,allow
    Deny from all

    # whitelist Your own IP address
    allow from xx.xxx.xx.xx

    #whitelist some other user’s IP Address
    allow from xx.xxx.xx.xx

    That articles describes a method to block ip addresses but it isnt exactly what I am looking for. It denies ALL access from ANY IP except the whitelisted ones.
    I want to do the oposite, allow ALL IP addresses EXEPT for one user, allow only a single IP address. That articles describes a method to block ip addresses but it isnt exactly what I am looking for. It denies ALL access from ANY IP except the whitelisted ones.
    I want to allow ALL IP addresses EXEPT for one user; allow only a single IP address.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    supernovia · Staff · Oct 25, 2022 at 12:17 am
    • Copy link Copy link

    Hey there! How you go about this will totally depend on your hosting environment, actually. It’s independent of WordPress itself, but dependent on whether you use Apache, nginx, etc. so I’d recommend contacting your host first. I’m sure there is an allow from option, or they may have another recommendation.

    Going forward, these forums are primarily for sites that use our free-tier hosting. We’re a little different from the WordPress software itself:
    https://wordpress.com/go/website-building/wordpress-com-vs-wordpress-org/

    You’ll want to create an account at https://wordpress.org/support/forums/ so you’ll have access to the correct community for your site. Or, you’d be welcome to host here; your plan would get direct support.

    I hope this helps!

  • The topic ‘PER USER Whitelist IP Address, Deny all others’ is closed to new replies.

Tags

  • ip
  • login
  • security
  • WordPress

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 3 years
  • Latest reply from artesaniamxusa

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions