6 ms·
I usually set up nginx to "default ignore" and only respond to specific paths which I can name... works for api only domains at any rate. just use an explicit s
by mjbrownie 5y ago
I usually set up nginx to "default ignore" and only respond to specific paths which I can name... works for api only domains at any rate. just use an explicit subfolder like /api/ ... cuts down on the noise.
location / {
return 444;
access_log off;
}
location /a/ {
...
}
- usernamebias 5y agoCan't do that when 404's are expected from actual customers. I need to redirect 404 to /
- mjbrownie 5y agoyeah depends on your site structure.. you could always stop the logging (or log to a different file) but return a human 404 with links to legit routes etc. the main thing is to remove the noise so you can focus on the more targeted probing.