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

Peter,

Glad to hear you identified & resolved the problem, and thanks for picking up the v2 module. If you don’t mind my asking, what exactly was the problem with your .htaccess file? My guess was that there was a redirect preventing access to the directory containing the files (which is why I suggested trying to download the file using just the link), but I’m sure the solution you found could help others in the future.

Thanks again!

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

Simple enough really. The site’s in development so the whole thing was password-protected using a Basic .htaccess password. Can’t believe I missed this!

       
simplyee's avatar
simplyee
104 posts
16 years ago
simplyee's avatar simplyee

Wow, this is indeed great, and just what I need. But one big issue, my host will not change allow_url_fopen to on. What would be a good work around. I see some tips on using cURL, but am clueless about it.

Would love to get this commercial version if someone could help me out on how to get this to work.

Thanks.

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

The next update of the commercial version (2.4 - due out by end of week) will allow a url to be used (if allow_url_fopen is enabled), or alternatively, a path to be specified. This should certainly solve your problem, as well as allow you to track your downloads.

n addition, if your intent is to sell downloadable goods, you may want to check out the demo I’ve posted for Digital Commerce Beta - it integrates with the commercial version of LinkLocker (though I’m debating giving it its own implementation so you wouldn’t need to purchase LinkLocker) to allow you to create a store weblog and automatically send download links of digital products to customers.

       
simplyee's avatar
simplyee
104 posts
16 years ago
simplyee's avatar simplyee

Thanks for the fast reply Brad. All I’m doing know is trying to mask a link that comes straight from 2Checkout. In the future I’ll have a more robust store, but for now just one downloadable sound file and one link that 2CO returns.

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

I’ve looked at the possibility of using curl in the commercial module, but just haven’t had time to adequately test and play with it. Will slate that for an upcoming release of the module, but cannot yet provide a time frame for its implementation. For the time being, it sounds as though this free module would be a great fit if you could ask your host to enable allow_url_fopen for your site. Perhaps they would let you use your own php.ini to override this setting? Let me know how it goes.

Thanks, Brad

       
simplyee's avatar
simplyee
104 posts
16 years ago
simplyee's avatar simplyee

Thanks Brad. I’ll look forward to it. My host isn’t keen on doing either, so I’m stuck for now.

Thanks again.

       
Versa Studio's avatar
Versa Studio
572 posts
16 years ago
Versa Studio's avatar Versa Studio

Brad,

A client asks if LinkLocker will support .htm and .html files. Do you think this will work?

Thanks,

Ben

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

I haven’t ever actually tried, but I’m confident that it does.

       
I Hussey's avatar
I Hussey
7 posts
16 years ago
I Hussey's avatar I Hussey

Hi I have a problem with link locker I am working on a project with a very strange domain name www.tlq.travel link locker just won’t recognize it as a proper domain.

If I use link locker and put in a regular domain it works fine

Here is an extract of my code:

                        link locker encripted link <a href="http://{exp:linklocker">link here</a>

                        link locker encripted link <a href="http://{exp:linklocker">error free link to ihussey.co.uk here</a>

The error I get is Invalid URI if the page divert is not on. The actual page this is all happening is:

http://tlq.travel/journal_articles/view/sample_journal_article_6/

It is not the first problem I have had with using such a strange domain name and probably not the last. If anyone can help I will not go mad.

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

Hard to say what the problem is - your code isn’t coming through. Can you email it to me in .txt format. While you’re at it, it may be helpful if you create a link with mode=”debug-post” and send the html for the page that generates.

       
I Hussey's avatar
I Hussey
7 posts
16 years ago
I Hussey's avatar I Hussey

Hi I believe the problem is with the .travel domain - as normal TLD’s are only three characters long and this is obviously five.

After discussions with my client I have decided to just not encrypt the links as the materials are not that sensitive. I also have bugs logged with foxee cart due to similar problems and I expect more.

The code on the page I emailed you has been set back to normal. Thanks for the help in investigating the problem if you get a fix I will be watching this thread otherwise I am taking the easy option - the project is already overrunning.

thanks Ian Hussey

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

Ian,

I received your code yesterday and it looks good, but I haven’t had a chance to dig into the issue. I agree that the problem is most likely with the domain of “.travel”. My module uses PHP to parse the URL, so this is likely a problem within that PHP function. I’m guessing it just doesn’t recognize the .travel as being a valid .tld. One thing you may try is to add the ‘www’ to the front of the href - I noticed your code was calling without it - perhaps having that in would better help PHP to decipher it?

Thanks, Brad

       
I Hussey's avatar
I Hussey
7 posts
16 years ago
I Hussey's avatar I Hussey

Hello Brad

I gave the www a try, the code still does not like it. I have subsequently moved to a .co.uk name

Thanks Ian

       
Euan's avatar
Euan
214 posts
16 years ago
Euan's avatar Euan

Managed to get this working after turning allow_url_fopen = On on my server. Now time to test it out for a future site although if it does as we hope we’ll definitely be using V2.

As I understand it, files need to be stored on our server which is fine. I just want to make sure that the files aren’t accessed/downloaded (e.g. bandwidth used) until the links are clicked on by the user?

We’ll potentially have 2-50 links on a page generated by LinkLocker and we don’t want to be going through bandwidth! If someone actually downloads the file that’s fine 😊

       
First 10 11 12 13 14 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.