Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-01-21 08:57:24

MrViSiOn
Member
Registered: 2014-11-17
Posts: 26

Protect Download link file

Hi!

We are creating a block for downloading attachments for an article. Users give us their email and we email to them url download attachment link to that user that fill that form….

Issue is in that file link: http://domain.com/file_download/190/Catalogo_Yamaha2016XP500SP.pdf

It works fine… but How can I protect other downloads? I mean If I change that 190 for 189 textpattern gives me file 189…

I’d like to protect better “other” downloads/files. Can I generate another format download link? Not showing file id in it?

Is this possible?

Thank you

Offline

#2 2016-01-21 12:26:12

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: Protect Download link file

Hi

This Bloke plugin should help solve your problem: smd_access_keys

Cheers

Offline

#3 2016-01-21 14:06:03

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,303

Re: Protect Download link file

MrViSiOn wrote #297521:

I mean If I change that 190 for 189 textpattern gives me file 189…

That’s strange. When I do so it’d give me a 404 not found. And right so: It’d also need the same file name at the end of your path. And Textpattern complains when I upload a file twice. Are you using a very old version of TXP where that mechanism maybe wasn’t yet built in?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2016-01-21 14:11:32

MrViSiOn
Member
Registered: 2014-11-17
Posts: 26

Re: Protect Download link file

We are using 4.4.2 textpattern version.

But smd_access_keys plugin works for me xD

Thank you!

Offline

Board footer

Powered by FluxBB