O
O
Outsider V.2015-03-07 15:35:32
PHP
Outsider V., 2015-03-07 15:35:32

How to prevent public access to PHP scripts?

I read in the site security recommendations that PHP scripts that are not intended for external access (via HTTP) should not be stored in a public folder, but above.
But in my case, the transfer of such scripts is associated with difficulties - there are quite a lot of them, all modules are in folders, when transferring, you will have to rewrite a bunch of links.
Is it possible to somehow block access to certain files or folders by link (i.e. via HTTP)?
For example, in the FTP manager there are access rights - public, owner, etc. - is that not it? If not, then what are the rights in FTP, and how do I do what I need?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2015-03-07
@FanatPHP

Do not worry.
Nobody wants your files.
Security recommendations are often written by idiots.
You can close it, but it makes very little sense.
If I were you, I would take care of a meaningful file and folder structure - that would be much more useful.
"rights in FTP manager" refers to the computer, not to its clients.

Z
Z Sh, 2015-03-07
@dergus

if apache make a .htaccess file and write deny from all there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question