UPDATE : 07/29/2008 LinkLocker has been updated to version 1.3. Enhancements for this version include: Web page can be displayed using parameter mode=”page” Debug mode can be enabled using mode=”debug”. Using this mode, debugging information is displayed in the page source. Simply search for the phrase “LinkLocker Debugging”. Note: The generated link will not work while mode=”debug”. The URL field is stripped of HTML tags - this will fix the issue that arises if the URL is passed to LinkLocker from another module and the database field holding the url wasn’t specified to be “text-only”. Hash generation has been updated to fix bug that included “/” and “.” characters in the encrypted url hash string.
Please note, while this software is free for personal and commercial use, it has required quite a bit of time and effort to develop and maintain. If you find the module useful, please consider a donation of any amount to help further development. Paypal link will be provided via PM upon request.
Hi Brad,
This module looks excellent.
Quick question - we may need to have downloads for files of 200-300MB on our site (it’s software and patches). Do you think this would prove a problem having php handle downloads for files of this size? It’ll be a very low traffic site, but every now and then a user will need to download a very large file.
cheers
I can’t imagine a problem you would run into.Technically PHP isn’t handling the downloads - PHP is simply generating the links. As usual, your webserver is still serving the file on its own. That being said, unless you have bandwidth restrictions or some sort of server problem, everything should be fine.
Thanks Brad,
Looking forward to trying out your Mod.
Q: Will this Mod allow me to download from a file/directory that’s behind the /public_html/ level? So would it allow me to access a directory in a path like this: /home/mysite/secure_file/ or can it just allow obfuscated access to a directory at the public-root level?
The docs were unclear to me, but they hinted that this might only work with files in the public area.
Hope your weekend is going well.
Hey Kurt,
To answer your question, when working with files, this script will currently obfuscate/encrypt the download link, which must be in a publicly accessible area. You may hide the file within weirdly named folders to further obfuscate the location, but that location will never be made visible to anyone downloading via a Linklocker generated link. At least this way, you could keep someone from randomly guessing where the file is stored. Hope that helps, and hope you find the module useful.
Hi Brad,
I have installed your LinkLocker module on a couple of websites we are currently developing however I am experiencing a few issues.
I have setup the linklocker within the templates and the download URL’s appear to have been generated and I am able to successfuly download the files, however, when I open/run the files they all seem to be corrupt or broken in some way.
For example, RAR files complain that they are corrupt/damaged, PDF files moan that they’re not valid PDF’s and powerpoint files say that they are missing a stylesheet.
This is probably down to an error on my part, do you have any suggestions, have you come across this before? (This has occured on two seperate servers/setups)
LinkLocker has been updated to version 1.4 - download link is available in the first post of this thread. Mime types have been updated and now support is confirmed for the following filetypes: .pdf, .ppt, .doc, .xls, .rar, .tar, .zip, .jpg, .jpeg, .gif, .png, .wma, .flv, .mov, .mp3, .wav
The current version of the Linklocker module is free for use on both commercial and non-commercial ExpressionEngine sites. Simply pass it the URL to a file you wish to allow a user to download (but don’t wish to allow them to know the file’s location) and it will provide a download link that hides the file’s true location. Also, it allows you to create a timeout for the link (default is 5 minutes) as well as lock the link to the IP address of the person who is shown the link. Please read the docs.txt file for usage instructions, examples and more.
Enjoy!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.