NGINX not equal to

前端 未结 1 1741
一向
一向 2021-01-11 09:29

A client wants me to block access to a page unless the http_user_agent = xxx.

Is there a way to do this? I was thinking of an if else or if not

相关标签:
1条回答
  • 2021-01-11 10:02

    Use the !~* operator which is the negated version of ~*.

    See this document for details.

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