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

前端 未结 1 441
春和景丽
春和景丽 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

    
    order allow,deny
    allow from 200.200.200.200
    deny from all
    
    

    0 讨论(0)
提交回复
热议问题