L
L
littleguga2015-08-14 17:05:37
PHP
littleguga, 2015-08-14 17:05:37

Is this approach safe?

You need to store information in a json file. But only scripts should have access to it, is it enough to write

<files "data.json">
deny from all
</files>

Or will an outsider still be able to access this file?
Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-08-14
@littleguga

just don't store this file in webroot.

D
Dmitry K, 2015-08-19
@gospodinmir

Formally: deny from all - this saves you from danger.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question