One time weblink

Please post here if you have problems in using Wing FTP Server.
Post Reply
impact
Posts: 19
Joined: Fri May 10, 2013 1:39 pm

One time weblink

Post by impact »

Hi,

is it possible to create a weblink that works only one time and expires after download?
In alternative is it possible to protect a weblink with a one time password?

Thank you in advance

Andrea
Impact spa
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: One time weblink

Post by FTP »

Yes, you can set the download limit as "1".
impact
Posts: 19
Joined: Fri May 10, 2013 1:39 pm

Re: One time weblink

Post by impact »

Ok thank you.
Another question is it possible to set IP access for weblinks or disable weblink generation just for one user?

Thank you
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: One time weblink

Post by FTP »

OK, you can set the IP access rules under the domain level only, and you can't enable or disable weblink generation for the specified user, but you can handle it by modifying the html file, just edit the file "webclient/weblink.html" and "webclient/weblink_update.html", replace this line:

if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then

into:

local user = _SESSION["username"]
if user ~= nil and _SESSION["currentpath"] ~= nil and (user ~= "aa" and user ~= "bb" and user ~= "cc") then
impact
Posts: 19
Joined: Fri May 10, 2013 1:39 pm

Re: One time weblink

Post by impact »

Ok

So in the line user "aa" "bb" "cc" i have to set user who can generate weblink o who can't generate weblink?

Thank you!
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: One time weblink

Post by FTP »

Of course it means those people can't generate weblink.
impact
Posts: 19
Joined: Fri May 10, 2013 1:39 pm

Re: One time weblink

Post by impact »

It works perfectly!

Thank you!

Andrea
Post Reply