I tried changing to restricted level, but that doesn’t seem to do anything. Now it seems that the restricted_url isn’t being seen - I can download the file no matter what user group is in the restricted_level parameter. I’m logged in as group 7 user for testing, and have changed restricted_level to ‘9’ as well as ‘1|7’ and ‘7’ and in every case I can still download the file.
Will correct this in newest version to be released in a couple of days. This module actually has lots of users - surprised nobody else noticed yet. Anyways, thanks for your patience & helping me make this a better module.
LinkLocker version 2.4 has now been released. As of this version, allow_url_fopen is no longer required. If this setting is off, the module will attempt to use curl functions to send the file. Even better, a url is no longer required as the module will now accept a parameter of “path” - a path, relative to the root of the site, to the file you wish to allow access to. Also, I fixed the bug with “restricted_groups” that Ryan noted above. Thanks to everyone who has purchased this module.
If you’d like to purchase, PM me and I will send you my paypal address. License is $30 USD per site.
Brad, how does updating/upgrading work? I just bought 2.2 a couple days ago and would like to upgrade my install to 2.4 before fully deploying it on the site.
Ryan - will send you the updated version - simply replace your files with these, then click on LinkLocker in your “Modules” section - will upgrade automatically. I didn’t send this to you yet because you were testing Digital Commerce, and it is not compatible with this version. Will send you the updated module and the line that would need to change in Digital Commerce in order to make this work with it when I return home this evening - don’t have access to anything from here.
Brad - I’m not using Digital Commerce at this point - just Linklocker and the Simple Commerce module. I think all I need at this point is the updated Linklocker. Thanks!
I upgraded from 2.2 to 2.4 this morning and I can’t use the module at all now .
The upgraded docs (main screen of the module) said that it upgraded to 2.4, but the module list still showed it as 2.2.
I ended up uninstalling the module (which you caution against due to losing information - but at this point there was very little info to show). I re-installed, and the module showed the correct number in the modules list.
I was also getting an error on the template on the front end of the site when using the restricted_groups parameter - so I removed that for now.
Now none of my download links work. The link looks correct when I hover over it (i.e. it shows the ACT=53, and then all the encoded stuff), but when I attempt to download it, all I get is “public/html” and nothing downloads. In the module control panel, the “Actual Links” column shows “/home/mysite/public_html” as the generated link.
I rolled back to 2.2 for now, and the links seem to be working - but I’m avoiding the restricted_groups parameter, too.
Just got at the code - believe I’ve corrected the issues you’ve reported. Emailed you the updated code. Please let me know that all is well again, and thanks for bringing this to my attention.
I rolled back to 2.2 in the meantime (and it’s working fine - so is the stats plugin). When I get some time this week (might be tonight), I’ll backup my DB and give this one a shot. Thanks for the quick responses, Brad.
Hey Brad, having trouble using mode=“page” param. I keep getting the error, “Could not find a matching hash in database.” when I click on the link. I’m trying to hide the url to my download page. I’ve got
edit: don’t know why, but the forum won’t let me post the actual code - it’s missing the last curly brace and double quote at the end. also won’t display my url…
I’m not sure if perhaps not all your code is coming through here in the forum, but it doesn’t appear that you have given the module a link to encrypt. Please email me with an example of the code you are using on the form, and we’ll figure it out.
Brad - a questions for you (I remember I posted it earlier somewhere but didn’t find any replies)..
I am using linklocker on a test server and I am using it to encrypt URLs of remote files that are hosted on amazon s3 to save badnwidth costs.
But I found that by using linklocker, my server’s bandwidth is used and since files are approx 1GB each, it results into consuming 30-40GB of bandwidth in just few hours by handful of test users.
I haven’t done any testing with Amazon S3, but what you’re saying would make sense. Technically, even though the file may be stored on a remote server, the link that they click on is encrypted by LinkLocker. The link is decrypted by the module, and to keep the location secret, the file is read from its storage location and streamed to the user. I’m not exactly sure how you could send a file to the user from another location without showing the source, other than the way the module currently provides.
I’d like to know if there is a way to dynamically name the file that Linklocker outputs to the user. I upload files using Mark Huots File extension. When files are uploaded they are renamed to make it even harder to guess where they can be downloaded. What I would like to do is to rename them again when a user clicks a download link so that they get a more human readable name.
The LinkLocker module simply serves the file that you point it to. Whatever name the file has, it will keep. If you are using the module, there isn’t really a reason to rename the file to something obscure as its location is not shown to the user and the link is encrypted. If you wanted to prevent people from guessing the location, simply naming the parent folder that contains the files to something obscure should do the trick.