View Full Version : Private PHP!
20th January 2006, 22:30
Can anyone tell me how to set up new site that after disabling PHP scripts, if client uploads php,instead of code on his site shows up some kind of error?:rolleyes:
20th January 2006, 23:41
Do you mean that a client shall not be able to upload php files to a site and get an error instead?
24th January 2006, 10:12
I mean when he uploads php site and after that when someone tries to go to his site,lets say "index.php",visitor gets some kind of error page instead of php code of that "index.php".
Thnx for prompt answer. :)
24th January 2006, 22:19
You could put this into the "Apache Directives" Field of ISPConfig:
<Files ~ '.php$'>
Deny from all
Allow from none
<Files ~ '.phps'>
Allow from all
It doesn't display an error for PHP files, but at least it doesn't show the source code.
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.