Jump to content
alex9099

Proteger ficheiros

Recommended Posts

alex9099

Qual a melhor maneira de proteger uma foto (que e feito o upload por um script php) ?

Por htacess ou fora do public_html (o host e o hostinger)

Edited by alex9099

<head>

<title>Olá</tile>

<head>

<body>

Sou o alex9099 e programo em php, html, javascript, css

</body>

Share this post


Link to post
Share on other sites
alex9099

ok.. so por curiosidade se eu metesse um htacess a restringir . ele abria sempre as imagens desde que se tenha o link


<head>

<title>Olá</tile>

<head>

<body>

Sou o alex9099 e programo em php, html, javascript, css

</body>

Share this post


Link to post
Share on other sites
Knitter

Depende de como configurares o apache, podes definir regras para bloquear acesso a pastas, ficheiros, URLs, etc. Se bloqueares o acesso a ficheiros de determinada extensão qualquer pedido a esses ficheiros é rejeitado.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.