I use a free provider (Hostinger) to remotely test some% with%% of my%. Some of them use scripts
to write PHP
to the folder in which they are located. The problem is that currently the folder can be fully accessed externally, which allows access to set-cookie
of cookies
. How do I ensure that código fonte
works (including having permission to write scripts
) and keep them protected from access to scripts
?
I've read some suggestions here in Stackoverflow about editing cookies
, but I did not find a specific setting for my case. Protect without preventing access to fonte
and saving .htpaccess
.
EDITED ::::::::::
I combined two possibilities: obfuscate the php script using a key encript with link and add .htaccess, following this guideline: link