Skip to content

Instantly share code, notes, and snippets.

@shavit
Created March 12, 2017 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shavit/f8defc56b598a0f2ca4ac5e6827298a3 to your computer and use it in GitHub Desktop.
Save shavit/f8defc56b598a0f2ca4ac5e6827298a3 to your computer and use it in GitHub Desktop.
Nginx configuration file for undefined requests
# Block access from IP
server {
listen 80 default;
server_name _;
ssl off;
# No response
return 444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment