homepage Welcome to WebmasterWorld Guest from 54.163.139.36
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

10+ Year Member



 
Msg#: 3032866 posted 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

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3032866 posted 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

10+ Year Member



 
Msg#: 3032866 posted 7:01 pm on Aug 3, 2006 (gmt 0)

Thank you, but what about denying php?

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3032866 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved