htaccess “order” Deny, Allow, Deny

前端 未结 6 796
天命终不由人
天命终不由人 2020-12-04 06:44

I would like to allow only one country access, but exclude proxies within this country.

This is what I have (shortened version for convenience)



        
6条回答
  •  自闭症患者
    2020-12-04 06:57

    As Gerben suggested, just change:

    order deny,allow
    deny from all
    

    to

    order allow,deny
    

    And the restrictions will work as you want them to.

    Details can be found in Apache's docs.

提交回复
热议问题