You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Boyle Owen <Ow...@swx.com> on 2006/04/11 12:41:16 UTC

RE: [users@httpd] Restricting the number of times a file can bedownloaded.

> -----Original Message-----
> From: david0005 [mailto:david0005@optusnet.com.au] 
> Sent: Dienstag, 11. April 2006 11:38
> 
> I'm not trying to create a limited addition or limit the number of
> copies. I am trying to conserve bandwidth consumed by my web server. 

Bandwidth = no. of bytes per unit time

Originally, you asked about "number of times a file can be downloaded". That sounds like you wanted to make a scalar count of the number of downloads and limit it to, say, 10. So the file would be inaccessible after 10 downloads no matter if the 10 had been downloaded all at the same time or over the course of several days. That would be an entirely different thing. It's like the difference between the range and the speed of a car...

Controlling bandwidth means you want to limit the number of concurrent connections and/or the rate at which each client is served. So go to http://modules.apache.org/search and search for "throttle". That will get you started.


> I intend to send out some emails with the following segment of 
> html code:
> 
> <IMG height=240 loop=infinite
> dynsrc=http://www.zyzygy.com/examples/automotive/holden.wmv
> src="http://www.zyzygy.com/images/loading3.gif" width=320
> border=0>
> 
> I only want the recipient of the email to be able to download the wmv
> file.

Now I'm even more confused... Are you talking about controlling access? (ie, you don't want someone who gets a copy of the mail to access the file?)

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> Thanks,
> 
> David
> 
> -- 
> david0005 <da...@optusnet.com.au>
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Restricting the number of times a file can bedownloaded.

Posted by david0005 <da...@optusnet.com.au>.
Hi Owen,
Thanks for your erudite reply.
On Tue, 2006-04-11 at 12:41 +0200, Boyle Owen wrote: 
> Bandwidth = no. of bytes per unit time
> 
> Originally, you asked about "number of times a file can be downloaded". That
>  sounds like you wanted to make a scalar count of the
> number of downloads and limit it to, say, 10. So the file would be inaccessible
>  after 10 downloads no matter if the 10 had been
> downloaded all at the same time or over the course of several days. That would
>  be an entirely different thing. It's like the 
> difference between the range and the speed of a car...
> 
> Controlling bandwidth means you want to limit the number of concurrent connections
>  and/or the rate at which each client is served.
> So go to http://modules.apache.org/search and search for "throttle". That will get 
> you started.

I am actually well aware of all of the technical meanings of the word
bandwidth. However, I was using the word in the colloquial sense -- that
is bandwidth as a limited commodity which costs money.

After a certain limit my host charges by the megabyte. So I do not want
to pay for anyone to view this video clip, just the people that I send
the link to. So yes I am talking about controlling access. However I do
not care if a recipient emails the video clip as an attachment to a
friend. I just do not want that friend accessing my web server. Making a
scalar count of the number of times the file has been downloaded would
also serve my purpose as it would allow me to cap the bandwidth cost of
this mail out. I am not concerned about the number of concurrent
connections so I do not need throttling. I am concerned about minimising
the number of megabytes of data delivered by my web server.

> Now I'm even more confused... Are you talking about controlling access? (ie, you
>  don't want someone who gets a copy of the mail to
>  access the file?)

Yes. But I don't care if they receive the file as an attachment.

Regards,

David



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org