top | item 26720165

(no title)

mjbrownie | 4 years 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/ {
       ...
    }

discuss

order

usernamebias|4 years ago

Can't do that when 404's are expected from actual customers. I need to redirect 404 to /

mjbrownie|4 years ago

yeah 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.