How to limit the number of downloads from one ip?

Status
Not open for further replies.

theproper

New Member
Messages
14
Reaction score
0
Points
0
First, how to create links to pdf objects on the webpage? Also, is it possible to make the linksl execute the 'save as' action when clicked ?
And more important: how to (if possible) limit the number of downloads from one host(ip adress)? For example, i would like to put links to 20 pdfs but only let one visitor download like maximum 5 of them?

Plese help
 

ah-blabla

New Member
Messages
375
Reaction score
7
Points
0
Odf files are just linked as normal links, ie.
Code:
<a href="http://the.file/text.pdf">This is a link to a pdf</a>

You could limit downloads by writing some form of script in php. There may also be ready built software that does this. I would recommend some searching around.

You can't force users to choose the save as option, you can only suggest that to the browser, and some will ignore it. One possibility is the following .htaccess code:
Code:
<Files *.uvf>
ForceType applicaton/octet-stream
Header set Content-Disposition attachment
</Files>
This would cause (hpefully) all .uvf files to be downloaded instead of viewed. You might want to read this.
 
Status
Not open for further replies.
Top