开发者

.htaccess add exception to disabled CGI execution

开发者 https://www.devze.com 2023-03-05 06:28 出处:网络
I have a website with a \"protected folder\" using a .htaccess file. Inside this folder the execution of CGIs is disabled, the .htaccess is as follow

I have a website with a "protected folder" using a .htaccess file. Inside this folder the execution of CGIs is disabled, the .htaccess is as follow

Options -Indexes -Includes -ExecCGI
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi .php4 .php5 .js

Now I'm in the need of executing a PHP script in this folder (overiding the CGI disabling), lets suposse the name of my script is

my_script.php

What is the best way开发者_如何学JAVA to maintain my security in this folder deniying the execution rights to ALL the scripts BUT to my_script.php?

I have full access to the .htaccess file so I can change what I want.

Kind regards and thanks a lot in advance.

P:.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号