3 of 11
3
LinkLocker Pro - Commercial Release
Posted: 02 January 2009 03:13 PM   [ Ignore ]   [ # 37 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

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.

Thanks for looking into this.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 02 January 2009 04:08 PM   [ Ignore ]   [ # 38 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Ok, wasn’t a typo - should be restricted_groups. Still troubleshooting.

Profile
 
 
Posted: 02 January 2009 04:29 PM   [ Ignore ]   [ # 39 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Found it - line 121 of mod.linklocker.php should read as follows:

if (count($this->restricted_level) AND !(in_array($SESS->userdata['group_id'],$this->restricted_level))) 

instead of

if (count($this->restricted_level) AND !(in_array($SESS->userdata['group_id'],$restricted_level))) 
Profile
 
 
Posted: 02 January 2009 04:30 PM   [ Ignore ]   [ # 40 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

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.

Profile
 
 
Posted: 02 January 2009 07:09 PM   [ Ignore ]   [ # 41 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

Cool - thanks for tracking that down, Brad. I’ll tweak that line in my version of 2.2.

EDIT: Yep, working as I’d expect now.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 04 January 2009 10:19 PM   [ Ignore ]   [ # 42 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

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.

Profile
 
 
Posted: 04 January 2009 11:25 PM   [ Ignore ]   [ # 43 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

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.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 05 January 2009 11:33 AM   [ Ignore ]   [ # 44 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

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.

Thanks again!

Profile
 
 
Posted: 05 January 2009 03:12 PM   [ Ignore ]   [ # 45 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

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!

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 06 January 2009 03:16 PM   [ Ignore ]   [ # 46 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

I upgraded from 2.2 to 2.4 this morning and I can’t use the module at all now grin.

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.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 06 January 2009 06:45 PM   [ Ignore ]   [ # 47 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Ryan,

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.

Thanks,
Brad

Profile
 
 
Posted: 06 January 2009 06:51 PM   [ Ignore ]   [ # 48 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

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.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 01 February 2009 10:24 PM   [ Ignore ]   [ # 49 ]  
Grad Student
Rank
Total Posts:  92
Joined  08-09-2007

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

<a href="{exp:linklocker url=" mode="page" expires="10" iplock="off">Download</a

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…

Profile
 
 
Posted: 01 February 2009 10:28 PM   [ Ignore ]   [ # 50 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Susan,

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.

Thanks,
Brad

Profile
 
 
Posted: 08 February 2009 04:06 PM   [ Ignore ]   [ # 51 ]  
Lab Assistant
RankRank
Total Posts:  226
Joined  10-23-2008

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.

Does linklocker has this ‘serious’ limitation?

 Signature 

ExpressionEngine Membership Software

Profile
 
 
Posted: 08 February 2009 06:10 PM   [ Ignore ]   [ # 52 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

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.

Profile
 
 
Posted: 13 February 2009 04:42 AM   [ Ignore ]   [ # 53 ]  
Grad Student
Avatar
Rank
Total Posts:  85
Joined  03-25-2008

Hi!

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.

Regards,

Matts

Profile
 
 
Posted: 13 February 2009 04:18 PM   [ Ignore ]   [ # 54 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Hi Matts,

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.

Thanks,
Brad

Profile
 
 
   
3 of 11
3