homepage Welcome to WebmasterWorld Guest from 174.129.80.166
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
htaccess deny php in directory
chadmg




msg:3032868
 1:27 pm on Aug 3, 2006 (gmt 0)

I need help writing an htaccess file. I need to deny php from being run in a certain directory. I would also like to deny perl and cgi as well. Any help would be greatly appreciated.

Thank you.

 

jdMorgan




msg:3032888
 1:40 pm on Aug 3, 2006 (gmt 0)

Place the directive

[url=http://httpd.apache.org/docs/1.3/mod/core.html#options]Options[/url] -ExecCGI

in a .htaccess file in that directory.

Jim

chadmg




msg:3033367
 7:01 pm on Aug 3, 2006 (gmt 0)

Thank you, but what about denying php?

jdMorgan




msg:3033432
 7:44 pm on Aug 3, 2006 (gmt 0)

No script --PHP, PERL, or other-- can normally be executed if ExecCGI is disabled.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved