SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess password only for external IP addresses?

    Hi All,

    Is it possible to set an htaccess file with a password but only for external IP addresses. In other words IP address range 192.168.0.xxx would be allowed regardless. Anything else would require a password.

    I know you can do the whole thing as in restrict access via IP or allow via IP but i would like a password for all external IP's

    Thanks for any help!

    Arc

  2. #2
    SitePoint Evangelist
    Join Date
    Aug 2009
    Posts
    406
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I doubt if it's possible using .htaccess, but you can do it using PHP (so login screen will be displayed for specific IPs only)
    Daniel, Helpdesk Leader
    Hosting24.com Web Hosting - First class web hosting services.
    Reseller Hosting - Provide unlimited disk space and bandwidth

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you can with the Satisfy directive


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •