We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Linklocker Free (encrypt download links)

Development and Programming

Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

If anyone is interested in this sort of functionality, has solid EE skills, and has the time and willingness to put the new module & plugin through their paces, I could use an additional beta tester. PM me if you’re interested.

As far as features of the new Module & Plugin:

LinkLocker v2.0 Module Features:

Allow users to download files without giving away the download location. Present a web page to a user while obfuscating the website address in the web browser’s address bar. Debug parameters that are passed in to the {exp:linklocker} tag. Track how many times a link has been created for a file. Track the download count of a file. Group or identify files by passing in an optional “group” paraemeter. Group or identify files by passing in an optional “label” parameter. Ability to restrict files to members only, and send them to a different URL if they aren’t logged in. Track member and guest downloads. Update links generated for members. Lock generated links to a user’s IP address. Set expire time for generated links, or no expiration. Restrict maximum number of download attempts for a file. Administrative backend that shows documentation, download stats for each link, and download stats for members. Backend allows “reset” function, which will create a new download link for a member if the link they have is expired, reached max downloads, etc.

Linklocker_stats v1.0 Plugin Features:

Download Count - Displays the download count for a url/group/label combination, or a group (counts downloads of all files in this group), or a label (counts downloads of all files with this label), or a file (counts all downloads of this file (regardless of label).

Member Downloads - If a member is logged in, this tag will return the number of times the user has downloaded the file. File may be specified by url, label, group, or any combination thereof. If the user isn’t logged in, this will either return the text specified in the alt_text parametert, or nothing if alt_text parameter isn’t used.

Top Downloads - Displays and unordered list of download stats for a url or label, sorted in ascending or descending order, with an optional maximum number of results. Allows a CSS class to be specified for the list as well as for the list items.

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Started a new thread for LinkLocker version 2.0 here. I’ll continue to support this version (1.4) via this thread until I can get a support website in place. This version will remain, of course, free. New version can be licensed for a site for just $30.

       
Random_Seed's avatar
Random_Seed
24 posts
16 years ago
Random_Seed's avatar Random_Seed

Anyone having problems with blank screens. Firstly set the err_page param to make sure it is actually working. Then secondly check to make sure your server / host has allow_url_fopen set to “On” in the php config. Was giving me a headache earlier.

Thanks for the great module Brad! 😊 I’m keen to give the commercial version a whirl too so expect a PM soon 😉.

Cheers, Tim

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Thanks for adding the important note to this thread, Tim. Will make sure to update the docs to reflect this as well.

       
Eric Snyder's avatar
Eric Snyder
202 posts
16 years ago
Eric Snyder's avatar Eric Snyder

Brad…Awesome module!

Just thought I would post here in case others run into this. Mt link was getting returned with two question marks before the “act=” like this:

http://domain.com/??ACT=20&url=1&linklocker=MTIyNj5jQ1NTk3fSMA==AAZ7NzEuMT2ZU4LjIwFmNi4xMgEZ== AAMQez==AAaW6m1hZ2Vz5aJiM0Nzjct1cGxvUnYWRzJijLM0NztiKdb2FyZEO 3RvY3Mmy9IzQ3O2AVFkdWx0Fhc1N1cHPYBvcnRzEJLnBkZgZd==AAMAU9==AAAAJ0

The problem was that I developed most of this site locally on a Windows machine and then moved it to a LAMP server. I had “Force URL query strings” to “Yes”. I believe (but have not verified) that “Force URL query strings” set to yes adds a ? after the site domain name. This was resulting in two “??” instead of one. I turned off Force URL query strings and it works great.

Thanks again for the great module.

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Eric,

Thanks so much for contributing your helpful note. This could pose an issue for those who, for whatever reason, may need “Force URL query strings” set to “yes”. I’ll fix this in the module and post updated code in the near future.

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

In response to Eric’s post, the module has been updated to version 1.4.1. The only change is a bug fix for those who may need “force URL query strings” set to yes. New version may be downloaded from the first post of this thread. If you’re already using the module and not experiencing any problems, there is no need to update. If you wish to update, simply replace /modules/linklocker/mod.linklocker.php with the same file in the 1.4.1 zip.

       
Deep Arora's avatar
Deep Arora
153 posts
16 years ago
Deep Arora's avatar Deep Arora

Can we also have an additional small feature which can actually make this module a great one? 😊

I want redirect URLs as encrypted URLs..so that if I want to display an affiliate URL on a blog post, and I dont want to show to the user the actualy affiliate URL..linklocker will encrypt it the same way, and checks on clicking that if its simply a URL, redirects.

For example _ I used this:

<a href=”{exp:linklocker url=" expires="0" iplock="off" target="_New" title="{title}”>

Then my URL is encrypted properly but when I click on it, it asks to save the file..where as it should simply go to that domain.

Is it possible?

       
Milan Topalov's avatar
Milan Topalov
128 posts
16 years ago
Milan Topalov's avatar Milan Topalov

I’m having problems using Linklocker v1.4.1 on EE v1.6.5.

Basically it doesn’t seem to work at all.

Here is what I get in the Apache logs:

[Thu Nov 13 10:22:44 2008] [error] [client XXXXX] PHP Notice:  Undefined variable: PREFS in /var/www/vhosts/XXXXX/system/modules/linklocker/mod.linklocker.php on line 164
[Thu Nov 13 10:22:44 2008] [error] [client XXXXX] PHP Fatal error:  Call to a member function ini() on a non-object in /var/www/vhosts/XXXXX/system/modules/linklocker/mod.linklocker.php on line 164

Any ideas?

       
Milan Topalov's avatar
Milan Topalov
128 posts
16 years ago
Milan Topalov's avatar Milan Topalov

To answer my own question…

On line 76 of mod.linklocker.php add $PREFS to the list of globals.

The line should look like this:

global $DB, $TMPL, $IN, $FNS, $PREFS;

That does the trick 😉

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Milan - Thanks for pointing out the bug. I’ve updated & reposted v. 1.4.1 on the first page of this thread.

Deep - I’ll look into your request, just have not had the time. As I’ve said before, I’m certain you can do this using the mode=”page” parameter for the linklocker tag - check the docs. It’s asking to save the file because that is the default mode of this module. Setting mode=”page” should simply stream the page to the browser. Let me know how that works for you.

       
peter snow's avatar
peter snow
6 posts
16 years ago
peter snow's avatar peter snow

First, thanks for this module. I’ve used it on other sites and it’s excellent.

I’m also having problems using Linklocker v1.4.1 on EE v1.6.5. It’s downloading an empty (4kb on disk) file with the correct filename. I’ve uninstalled and re-installed a couple of times and checked that allow_url_fopen is on (as recommended above).

Any ideas?

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Not quite sure. One thing to check is that the module is getting the correct path to the file and the file exists. Type the url that is being passed to LinkLocker in a browser window and make sure the file downloads for you and works. If it does, if you are using the linklocker module between a weblog:entries tag pair, make sure that the weblog:entries has a parameter of parse=”inward” - this way, the weblog will parse, passing the url as it is supposed to, to the LinkLocker module. Let me if that helps.

       
peter snow's avatar
peter snow
6 posts
16 years ago
peter snow's avatar peter snow

Thanks for the reply Brad. I just tried this and the URL that’s being passed to Linklocker is fine. I tried changing it to another known-good file too. Added parse=”inward” to the entries tag too, but no luck I’m afraid.

       
peter snow's avatar
peter snow
6 posts
16 years ago
peter snow's avatar peter snow

Just to say this is resolved. .htaccess sillyness. Thanks for your help.

Oh, and I bought the Linklocker 2 module. Great work.

       
First 9 10 11 12 13 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.