Welcome to WebmasterWorld Guest from 54.146.5.196

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

htaccess deny php in directory

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

Full Member

10+ Year Member

joined:Sept 25, 2003
posts:308
votes: 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.

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

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 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

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

Full Member

10+ Year Member

joined:Sept 25, 2003
posts:308
votes: 0


Thank you, but what about denying php?
7:44 pm on Aug 3, 2006 (gmt 0)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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

Jim

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members