Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: onclick and tag question Date: Thu, 19 Mar 2015 21:29:12 +0100 Organization: solani.org Lines: 23 Message-ID: References: <2047696.ZRK4UxyjuH@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1426796945 9070 eJwNx8ERACEIA8CWApFgO3Bo/yWcs68NyvTlUmjFfY4LexywaekwUYYCUaTtSxZm2PWO9vwBBK8QYQ== (19 Mar 2015 20:29:05 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 19 Mar 2015 20:29:05 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 X-User-ID: eJwNycERACEIA8CWRBIi5RyM9F+Ct9+lh0ULwQCHczrkPla3uOAG7OqN/D95pHBxbX0zXTfBBwFSECQ= In-Reply-To: Cancel-Lock: sha1:rcmnclPWwN5fZEFJZRm5McC5zdI= X-NNTP-Posting-Host: eJwFwYkBgDAIA8CVypOg4wA2+4/gHYLGrSSYEHQeZd/LQ4Z4v3nHYe6BXcGmht0IYbraVz8jLBG1 Xref: csiph.com comp.lang.javascript:27085 Mel Smith wrote: > Christoph said: >> Well, it pretty much appears that those "abusers" are actually download >> managers. If the web server is able to deliver partial content, I >> wouldn't worry about those, because they won't increase the overall >> bandwidth considerably. > > But it still bugs me ! If you really want to prohibit the usage of download managers, you should do this server side. So don't give a direct download link to the file resource, but instead to a script that will pass the file contents through. Signal the client that range requests are not supported by sending Accept-Ranges: none, and respond with an appropriate 4xx status code, if a Range header field is contained in the request. However, this would be OT for this newsgroup, if you won't use a server side ECMAScript implementation to do it. -- Christoph M. Becker