How to hide the server version?

Too bad the web page is sore on the eyes, because there is some good
info in there. Thank you for the link.

You might find some answers in the following guide, courtesy of
Calomel : Nginx Secure SSL Web Server @ Calomel.org

Stan

Hello!

On Mon, Jul 07, 2008 at 10:19:49PM +0200, Thomas wrote:

Using the following directive:

Deny certain Referers (case insensitive)

if $http_referer ~* (poker|sex|girl|grapx|allegro.pl) {

  • if $http_referer ~* (poker|sex|girl|grapx|allegro.pl)
  • if ($http_referer ~* “(poker|sex|girl|grapx|allegro.pl)”)

Maxim D.

Using the following directive:

Deny certain Referers (case insensitive)

if $http_referer ~* (poker|sex|girl|grapx|allegro.pl) {
return 444;
}

I get the following error message:

[emerg] 2854#0: invalid condition “$http_referer”

The spelling is correct, what did I make wrong?

Thanks I was missing a parenthesis.