4 ms·
I run a publicly accessible web service, and get this stuff all the time. My service happens to be fronted by nginx, so over time I accumulate config to match
by jffry 4y ago
I run a publicly accessible web service, and get this stuff all the time.
My service happens to be fronted by nginx, so over time I accumulate config to match these and drop connections and drop from the logs entirely:
location /wp-admin {
access_log off;
log_not_found off;
return 444;
}
(444 is a nonstandard error code that tells nginx to just close the connection, don't respond at all; if you want to be more mischievous you could return 301 "https://nsa.gov https://nsa.gov")
- DoctorOW 4y agoYeah maybe spamming the NSA with a bunch of random bots whose only common attribute is your domain in the referrer tag is a bad idea.
- KMnO4 4y agoI don’t think it’s illegal to redirect anyone anywhere. Either way, 301s don’t modify the referrer so they wouldn’t be able to tell.
- bell-cot 4y agoI'm thinking that legal/illegal might not matter so much if you happen to annoy somebody at the NSA. And betting that they wouldn't be able to tell might prove regrettably over-optimistic.