Jump to content

Recommended Posts

Olá, primeiramente bom dia ! Queria saber se arquivo em php não tem como a pessoa baixa de uma hospedagem de maneira alguma ? Se tiver oque devo fazer pra esconder esse arquivo ?

Desde já obrigado !

 

Caso tenha algum problema no seu apache ou htaccess a pessoa pode conseguir baixar, para proteger isso basta definir permissões nos arquivos importantes.

Link to comment
Share on other sites

Sim, Defino uma permissão na pasta onde fica neh ?

Enviado de meu XT1069 usando Tapatalk

 

Fica tranquilo, ninguém baixa php a não ser se houver problemas na compilação. A recomendação é você proteger os vulneráveis quanto a isso, fica aqui a dica via htaccess

# protecao arquivos exceto .php
<FilesMatch "\.(db|inc|tpl|tmpl|h|ihtml|sql|ini|config|class|bin|spd|theme|module|cfg|cpl|tmp|log|err)$">
order allow,deny
satisfy all
</FilesMatch>

# previne navegacao em diretorios
Options All -Indexes

# protecao htaccess
<Files ~ "^\.ht">
order allow,deny
satisfy all
</Files>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?