how to forbid using ip to visite my website

Calomel nginxdeletethis at calomel.org
Sat Nov 22 21:29:09 MSK 2008


One way is with an "if" statement.

## Only requests to our Host are allowed
      if ($host !~ ^(mydomain\.com|www\.mydomain\.com)$) {
         return 444;
      }


Nginx "how to" Fast, Secure and Efficient Web Server (nginx.conf)
https://calomel.org/nginx.html

--
  Calomel @ https://calomel.org
  Open Source Research and Reference


On Sun, Nov 23, 2008 at 12:23:34AM +0800, ustclucene wrote:
>how to forbid using ip to visite my website  thanks





More information about the nginx mailing list