D
D
Dmitry Bolshakov2019-08-02 02:30:42
PHP
Dmitry Bolshakov, 2019-08-02 02:30:42

How to ensure safe browsing of files?

How to provide secure storage for viewing text/files on the server?
If there is a permission in the database, then we show it, if not, then not, then we issue an error.
I would like to do it through chmod (but how to get them then?) / htaccess, because the file will be available by link.

With htaccess, I can imagine how to implement this, but I would like to hear the opinion of people who have encountered this situation and know how best to solve it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
prostoprofan, 2019-08-02
@Flappy1488

Organize file viewing by temporary links. Any file can be given through php, and there it’s not difficult to pull up information from the database, whether the user can download the file or not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question