Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

How do I prevent php execution by directory name?

Comments

1 comment

  • cPanelMichael
    Hello :) I am not aware of a specific rule to block PHP execution for specific directories by name. However, the following document will be useful if you develop a rule to use in the domain name's VirtualHost entry in the Apache configurationn file: Custom templates that will apply to all virtual hosts Thank you.
    0

Please sign in to leave a comment.