apache 身份驗證 - 如何禁止或繞過網路內的用戶

apache 身份驗證 - 如何禁止或繞過網路內的用戶

我有以下配置,允許我們公司網路內的用戶無需用戶名或密碼即可訪問該網站。

    <Location />
      Require valid-user
      Order allow,deny
      Allow from 1XX.2XX.0.0/16
      Allow from 10.0.0.0/8
      Allow from 127.0.0.1  
      Satisfy Any

      AuthType Basic
      AuthName "Enter your ID and password"
      AuthBasicProvider ldap
      Include /abc/httpd/conf/ldap_userinfo.conf   

      AuthLDAPGroupAttribute member

      ### Add application ldap-user/ldap-group below ###        
      Require ldap-group CN=AP-ABC-PREVIEWSITE-USERS,OU=GROUPS,OU=ABC INFRASTRUCTURE,DC=i,DC=abc,DC=com
      ErrorDocument 401 "Please use correct id and password for access to         this site"

    </Location>

新增後,使用者會看到輸入使用者 ID 和密碼的提示,但可以點擊取消並造訪網站。我該如何抑制提示呢?

相關內容