Allow IP address without authentication

前端 未结 3 1195
长发绾君心
长发绾君心 2020-12-04 12:47

I have set up a site that is currently work in progress. I\'m using an external SMS gateway that needs access to a script on my server. However, I have set up a basic userna

3条回答
  •  感情败类
    2020-12-04 13:17

    Just found out, with help from JoseK:

    Order deny,allow
    Deny from all
    AuthType Basic
    AuthUserFile /www/.site_htpasswd
    AuthName "Protected Area"
    require valid-user
    Allow from 1.2.3.4
    Satisfy Any
    

提交回复
热议问题