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

What size are the files (are they abnormally small, or does the filesize seem correct)? If they are quite small, then perhaps you could post the contents of your .htaccess file.

Thanks, Brad

       
Angie Herrera's avatar
Angie Herrera
357 posts
16 years ago
Angie Herrera's avatar Angie Herrera

File sizes are about the same - the contents are what get mangled. For instance, in a PDF there were a couple pages that in the “real” file had content but in the downloaded file did not (blank pages).

Here’s the htaccess code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php/$1 [L]

That’s all that’s in there.

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

Angie,

From what you describe (and your .htaccess file) it is very difficult to say what the issue might be - I don’t believe anyone has reported an identical issue. Have you tried downloading from different computers? Is there a chance of testing the module on a different or local server? If you’d like to PM me with logins for DB/EE/FTP, I’d be happy to take a look at your setup and see if I can determine the issue.

Thanks, Brad

       
Angie Herrera's avatar
Angie Herrera
357 posts
16 years ago
Angie Herrera's avatar Angie Herrera

Yeah, it’s a bit mind-boggling. I’ll PM you shortly - thanks for the help!

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

Angie,

Although it may have taken 3 hours of troubleshooting, this issue has been resolved. Although I couldn’t begin to tell you why, the problem appeared to be in the way your server handled streaming files. Could you tell me whether your server is a windows or linux box? I altered the function that serves the files and verified working in both LinkLocker Free and LinkLocker Pro. Left updated version of LinkLocker Free installed on your server. Will test both modified versions of the module on my own servers, and perhaps issue an updated version of each in the near future to prevent others from possibly having the same issue.

       
Angie Herrera's avatar
Angie Herrera
357 posts
16 years ago
Angie Herrera's avatar Angie Herrera

Brad,

Linux box at MediaTemple (if I remember correctly - it’s client-owned VPS/box).

In any case, tested and confirmed that it works! I can’t tell you how much I appreciate your help. I owe you a beer or coffee or whatever your drink preference. 😊

.angie

       
sigork's avatar
sigork
155 posts
16 years ago
sigork's avatar sigork

I tried LinkLocker: http://russianlistening.com/download_file/

The whole template code is:

<a href = "{exp:linklocker url=" expires="10" iplock="off" page="{path=site/error}" title = "Download">Download</a>

(attached; the forum doesn’t show the code correctly)

ExpressionEngine 1.6.7 MSM 1.1

File (uploaded test file): test_file.zip (9MB)

Result (downloaded file) is: russ. (13.5MB)

Where can I look for the error?

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

Sigork,

Could you better describe the problem? Are you saying the file isn’t downloading? Is it corrupt? Are there any error messages? Feel free to PM me if need be.

Thanks, Brad

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

Sigork,

I tried downloading the file using the link you provided. If you change the extension of the downloaded file to .html, you’ll see that it is actually serving a web page. I don’t speak the language so I couldn’t possibly tell you what it says, but perhaps this will help point you in the right direction?

       
sigork's avatar
sigork
155 posts
16 years ago
sigork's avatar sigork

That means it downloads the 404 page (‘Page not found’ w/ ad).

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

Ok, then it thinks it is serving a file. Could you send me the contents of your .htaccess file?

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

Sigork,

A quick uninstall/install of the module fixed it. I went ahead and upgraded it to the newest version that I haven’t released yet (1.5) anyways. The .zip file you’re trying to download is corrupt - doesn’t open even if you download without LinkLocker encryption. I put a text file in the download directory and verified it worked. Anyways, try a valid file and let me know that it works.

Thanks, Brad

       
sigork's avatar
sigork
155 posts
16 years ago
sigork's avatar sigork

Everything works correctly.

But a question. You mentioned:

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

Th list doesn’t include .exe

Can I use .exe files? (The file wasn’t corrupted - I replaced .exe w/ .zip after reading the above list of filetypes).

Because now I changed .zip to .exe and see it works also (though it is absent in the list). Should .exe be added to this list or it is better not to use .exe files w/ LinkLocker (but I downloaded it successfully with LinkLocker)?

Thanks a lot!

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

It is not on that list because I had not tested. Since you’ve tested and it works fine, feel free to use it and I will add the extension to the list.

Thanks.

       
R.K.Foster's avatar
R.K.Foster
138 posts
16 years ago
R.K.Foster's avatar R.K.Foster

Greetings,

I’ve downloaded and installed this plugin for a client website and it works quite well. Initially there seemed to be some issue with the downloads seeming to go very slowly but that may have just been my Internet connection. Is there any throttling of downloads going on as a result of this module or as a response by the webserver?

But I’m wondering if this module code can be used in the response emails that are sent out by the Simple Commerce module. If not then are there any suggestions on how to use the Simple Commerce module to allow people to purchase media for downloads using the links provided by this module?

Thanks for your time, Bob.

       
First 13 14 15 16 17

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.