4 ms·
I was wondering if you can prevent this by looking at the "Accept" header in the request but it seems accept is "/" for scripts. I'd expect the browsers rather
by jfroma 12y ago
I was wondering if you can prevent this by looking at the "Accept" header in the request but it seems accept is "/" for scripts. I'd expect the browsers rather to send "application/javascript".
Then the answer from my server will be 400 because I don't have a javascript representation of this url.
- TazeTSchnitzel 12y agoWell, you're still spammed with requests.
- jfroma 12y agoYes, but it is not the same if I can reply with 400 directly without further inspection. I imagine github can do this at the reverse proxy level, instead of doing 20 queries to mysql and overload the ruby application.
- TazeTSchnitzel 12y agoWell, GitHub is already returning a special response for those URLs.