Welcome! Log In Create A New Profile

Advanced

preventing requests with unknown host names

Igal @ Lucee.org
August 20, 2015 05:48PM
I want to disable processing of all requests that do not have a valid
hostname

I'm tried to follow the advice on:
http://nginx.org/en/docs/http/request_processing.html#how_to_prevent_undefined_server_names

so I have (inside http directive):

server {

listen 80;
server_name "";
return 444;
}

I also tried

server {

listen 80;
server_name _;
return 444;
}

but I am still able to access the website by its IP address?

what am I doing wrong?

--

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

preventing requests with unknown host names

Igal @ Lucee.org August 20, 2015 05:48PM

Re: preventing requests with unknown host names

Francis Daly August 20, 2015 06:18PM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 20, 2015 06:58PM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 21, 2015 02:38AM

Re: preventing requests with unknown host names

Francis Daly August 21, 2015 03:32AM

Re: preventing requests with unknown host names

navern August 21, 2015 07:52AM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 21, 2015 02:14PM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 21, 2015 10:28AM

Re: preventing requests with unknown host names

Francis Daly August 21, 2015 03:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 254
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready