Need to deny all IPs except mine from accessing site and display friendly error

前端 未结 1 424
春和景丽
春和景丽 2021-01-13 00:04

I need to deny all IPs except mine.

I got my outward facing IP from whatismyip.com. Let\'s assume it is 200.200.200.200

Here is the beginning of my .htaccess

相关标签:
1条回答
  • 2021-01-13 00:56
    <Limit GET POST>
    order allow,deny
    allow from 200.200.200.200
    deny from all
    </Limit>
    
    0 讨论(0)
提交回复
热议问题