-2

I have a folder in my website that is a kind of service. Other pages get data from this folder php files with ajax.

Now I don't want direct access to this folder or php files in this folder

Is there a way to do that?

sak
  • 1,230
  • 18
  • 37

1 Answers1

0

If I understand correctly. you just want to deny access to the some folders?

You can put a .htaccess file in that folder that contains just:

deny from all

That way you cannot open any file from that folder, but you can include them in php without any problems.

Viral
  • 1,329
  • 1
  • 9
  • 31