4 ms·
As a user, I block such requests. Why would I have any interest in making requests for "No Content". Perhaps this is why web developers use Javascript to trig
by 1vuio0pswjnm7 5y ago
As a user, I block such requests.
Why would I have any interest in making requests for "No Content". Perhaps this is why web developers use Javascript to trigger them, without any input from the user. How many users knowingly make such requests for no content, or otherwise send data, while expecting no visual acknowledgment/feedback that data is being or has been sent to a server.
There could be legitimate uses for this perhaps but the uses to "avoid detection by the user" outweigh the benefit of allowing it.
- howenterprisey 5y agoWouldn't those requests be unblockable, as you don't know if it'll be a 204 until you get the response?
- 1vuio0pswjnm7 5y agoOn the first time, I agree. However once a 204 response is discovered in the logs the domain or URL can be blocked going forward. I generally do not use a Javascript-capable browser nor enable Javascript when I am using a popular browser so JS-triggered requests for no content fail on account of no JS engine available. In cases outside the browser, e.g., checks to detect captive portals, I block them with a proxy.
- Minor49er 5y agoHow is this fooling the user? And why would you block something that's performing a desired action simply because of a certain response? That would be like saying that a server returning a 404 tricked you into thinking that a page existed, so the URL that returned it should be blocked.
- 1vuio0pswjnm7 5y agoIt is not performing a desired action. For example, I have no need for making a request to https://www.youtube.com/generate_204 https://www.youtube.com/generate_204 because I search, browse and download from YouTube via the command line, without using youtube_dl. Making that request, repeatedly, for no content does not benefit me in the slightest. Thus I do not make it. Why would I. Other users may operate the computer using popular software running under default settings where, e.g., visiting a website automatically runs a number of Javascripts unseen by the user and the user implicitly trusts that, whatever these scripts are doing, it is necessary and for the user's benefit. We know that is not always true. (This blog post shows us a number of instances where JS is used unncessarily.) There could certainly be legitimate uses for the non-JS 204 no content data sending technique. If I was using a website where this was useful, of course I would not block it. I am not yet aware of any such website among the ones I visit. Every use of requests for no content I have seen has been unnecessary. Usually it is some form of telemetry, sending data about user behaviour to a server without any prior user consent or affirmative action. I suffer no loss of benefits by not making or blocking these requests. For me, this is the most sensible approach. YMMV.
- Minor49er 5y agoIt sounds like your main problem is with telemetry, which you may be misidentifying solely based on the response, rather than with that particular response itself
- jvdvegt 5y agoThe indicated use case is for non-JavaScript pages...
- aprdm 5y agoYou can still use a form with 204 and have some js change some UI state based on the 204 status code...
- 1vuio0pswjnm7 5y agoI assumed the goal is to avoid use of Javascript, as suggested by the title.
- aprdm 5y agoRight, I think you don't need to have your whole form controlled by Javascript is already less JS
- eropple 5y agoYou block requests based on their response code? How's that work?
- 1vuio0pswjnm7 5y agoWorks well.
- SketchySeaBeast 5y agoDoes it? What problems do you solve by doing it?
- deleted 5y ago[deleted]
- 1vuio0pswjnm7 5y agoYes. For me, it solves the problem of more annoying, superfluous HTTP requests on the local network. There is often a privacy benefit, too, if the request are being used to send data to an entity that supports online advertising. In some cases, not making these requests avoids supporting the practice of unconsented user data collection, telemetry and online advertising.
- eropple 5y agoI can but only imagine what kind of life derives annoyance from "annoying, superfluous HTTP requests on the local network".
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- donatj 5y agoAs a user, you're a silly goose. There are thousands of reasons things would return a 204. Blocking that is just being obtuse. There are lots of requests that return a 200 with no body as well. Do you block all AJAX requests? The user doesn't see those happening, but it's not abuse.
- 1vuio0pswjnm7 5y agoI am using a text-only browser with no Javascript engine. I also make HTTP requests with non-browser clients. Without Javascript, most if not all of those "thousands of reasons" do not work and in a text-only environment they accomplish nothing for me. I do not block all AJAX-triggered HTTP requests. For the ones I might need to make in order to retrieve content, I make them without using Javasscript, outside the browser. Being called names without repercussion always proves that HN policies do not apply to everyone. It also indicates there is no cogent counter argument to make. More name-calling please. :)
- donatj 5y agolol I called you a silly goose because it rhymed. Note the end of the three stanzas. Genuinely no insult intended.
- 1vuio0pswjnm7 5y agoNone taken. I missed the poetic though. Nice work. :) If HN commenters want to protest over when and how one user uses her own computers and her own network, I welcome the entertainment. I'm bored today so foolishly responding to every comment, no matter how stupid.