Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: JavaScript code security Date: Fri, 23 Jun 2017 10:53:16 +0200 Organization: PointedEars Software (PES) Lines: 54 Message-ID: <11797668.dW097sEU6C@PointedEars.de> References: <58a53166-53fb-4974-9264-d73f26a0a549@googlegroups.com> <9817aa91-22fd-4064-980c-c872fe530dd3@googlegroups.com> <87poezuiyc.fsf@bsb.me.uk> <5d5b9191-f328-48c2-906b-2cc714dbb2d9@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn NNTP-Posting-Host: 177.225.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: gwaiyur.mb-net.net 1498207998 1146 178.197.225.177 (23 Jun 2017 08:53:18 GMT) X-Complaints-To: abuse@open-news-network.org NNTP-Posting-Date: Fri, 23 Jun 2017 08:53:18 +0000 (UTC) User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On Wed, 24 May 2017 05:56:37 -0700 (PDT), justaguy wrote: >>On Wednesday, May 24, 2017 at 3:11:53 AM UTC-4, Evertjan. wrote: >>> I can imagine some clever ways clientside code can provide a low level >>> of such security, but only with the help of serverside code, like >>> one-time values of hidden s. >> >>All right. I'm going with the best practice of server side data >>validation now. Thanks. JFTR: These approaches are not mutually exclusive. In fact, the best server-side validation framework will also generate adequate client-side validation code. > […] > That is where scripting belongs -- not in my browser, especially for > navigation. You are mistaken; at best, you are out of touch. > Does it cost more server machine cycles to: ^^^^^^^^^^^^^^^^^^^^^ > 1) Run a server-side script, or ^^^^^^^^^^^^^^^^^^ > 2) Spew all the javascript (including multiple browser detection > tests, only one of which is applicable per visitor) to each client > machine? 1). That was easy :) Besides, there is no “javascript”. And although “multiple browser detection tests”, and “browser detection tests” in general, do not have to be served by the same server, they are not only unnecessary; they are, with few exceptions, *unwise*. We have discussed this here /ad nauseam/. You should learn about a topic before you comment on it. > How much internet bandwidth is wasted through the inefficient sending > of scripts to client machines? Difficult to say. However, scripts do not *have* to be sent *inefficiently* to client machines, and there is also “internet bandwidth […]” and “server machine cycles” “wasted” by unnecessary roundtrips to servers. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.