stop direct access (.htaccess) and allow ajax request to subfolder

后端 未结 5 790
情书的邮戳
情书的邮戳 2020-12-20 01:42

I am trying to stop direct access to a subdirectories and the php files within subdirectories. I\'ve added the following code below to the .htaccess file within the subdirec

5条回答
  •  太阳男子
    2020-12-20 02:25

    If your ajax function access some file that is inside that folder, you can't. As the AJAX is a requisition sent from the client browser.

提交回复
热议问题