WebSite X5Help Center

 
Jyri Y.
Jyri Y.
User

Password protecting a file  en

Autor: Jyri Y.
Visitado 1905, Seguidores 3, Compartilhado 0  

Hi

I have a password protected area on my website which mainly contains links to my .pdf files.

The .pdf files are in files folder (I used the "Files linked to HTML code"). I would like to be able to link the direct .pdf files to my users and the website would then ask for username and password. Now when I do it does not ask for then since the path is "myserver.xxx/files/file.pdf" and the password protection has nothing to do with this file or folder.

Is there any way I can tell the program to ask for username and password since it already should know that the files are linked in a password protected area and should not be viewable to the public. Some of my users might give these links to unathorized people and I don't want that..

I stopped using .htaccess files, when I bought the program since this way is much easier, but if this is something that can't be fixed then I might have to downgrade.

Thanks

Publicado em
6 RESPOSTAS - 1 ÚTIL
Der Zwoemti
Der Zwoemti
Moderator

I recently created an example of how to solve this.The test page can be seen here.

http://testseiten.unofficialwsx5.de/direkt_aufruf/

The pages are in German but I think one can recognize and use google translate to find your way around.

If you want I can even make the project as a whole is available.

Ler mais
Publicado em de Der Zwoemti
Jyri Y.
Jyri Y.
User
Autor

That is exactly what I want, I didn't understand how you did that? 

Please upload the project if you can, thank you very much!

Ler mais
Publicado em de Jyri Y.
Der Zwoemti
Der Zwoemti
Moderator

See forum

http://unofficialwsx5.de

You have to register then you see the topic with attachement. The file is too large to upload here.

Ler mais
Publicado em de Der Zwoemti
Jyri Y.
Jyri Y.
User
Autor

Way too hard for me. I tried... Chrome tries to download the .pdf (I want to display it on the screen) and the .pdf files are for some reason corrupted.

Thank you for your time and effort

Some one else has an idea?

Ler mais
Publicado em de Jyri Y.
Der Zwoemti
Der Zwoemti
Moderator

I must update the script

Ler mais
Publicado em de Der Zwoemti
Little-key .
Little-key .
User

You can also save a pdf file with a password (PDF with password protection).

Ler mais
Publicado em de Little-key .