lucassd Posted August 28, 2021 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 08/28/21 Last Seen: September 21, 2021 Share Posted August 28, 2021 Hi, I would like to know how to Hide this PDOException, when the machine is restarted for a few seconds expose the server IP. Thanks in advance! Link to comment Share on other sites More sharing options...
0 BeWan Posted August 28, 2021 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 403 Reputation: 249 Joined: 07/04/19 Last Seen: 2 hours ago Share Posted August 28, 2021 i think. you can set this in htaccess to set page for this. Link to comment Share on other sites More sharing options...
0 lucassd Posted August 28, 2021 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 08/28/21 Last Seen: September 21, 2021 Author Share Posted August 28, 2021 41 minutes ago, BeWan said: i think. you can set this in htaccess to set page for this. Hi, I think I'm doing something wrong. I added this on .htaccess but didnt work: error_reporting(0); ini_set('display_errors', 0); Link to comment Share on other sites More sharing options...
0 BeWan Posted August 28, 2021 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 403 Reputation: 249 Joined: 07/04/19 Last Seen: 2 hours ago Share Posted August 28, 2021 22 minutes ago, lucassd said: Hi, I think I'm doing something wrong. I added this on .htaccess but didnt work: error_reporting(0); ini_set('display_errors', 0); this is php function not htaccess. Link to comment Share on other sites More sharing options...
0 lucassd Posted August 28, 2021 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 08/28/21 Last Seen: September 21, 2021 Author Share Posted August 28, 2021 I would greatly appreciate your help on this, what should I add on my htaccess? Link to comment Share on other sites More sharing options...
0 Kakaroto Posted August 29, 2021 Group: Members Topic Count: 99 Topics Per Day: 0.02 Content Count: 638 Reputation: 95 Joined: 05/11/12 Last Seen: 3 hours ago Share Posted August 29, 2021 host/fluxcp/conf/error.php Change: $showExceptions = true; // Whether or not to show exceptions (only applies to error.php) To: $showExceptions = false; // Whether or not to show exceptions (only applies to error.php) Link to comment Share on other sites More sharing options...
0 changedname Posted September 24, 2021 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 21 Reputation: 12 Joined: 09/14/21 Last Seen: September 26, 2021 Share Posted September 24, 2021 (edited) My response expands upon the answer Kakaroto provided. Setting the configuration "$showExceptions = false;" within the file "conf/error.php" will only turn off the FluxCP error output script. If PHP is not configured to silence error reporting, information such as your document root absolute path could still display. The larger concern is that an error message is exposing your document root absolute path. The pathing information provides visitors with an idea of how your website is hosted. Information examples include: - Are you using a multi-tenant hosting Control Panel solution, such as cPanel or DirectAdmin? - What is the hosting account or server Username? (A personal computer might expose your real name.) - Are there other directories of interest within the absolute path? (Relative pathing might allow unintended access to a file or software.) You will not be able to hide your webserver public IP address without using advanced techniques. I will not go over such techniques as it would take an unreasonable amount of time and effort to explain. Please review this easy to use DNS tool to see a demonstration: DNS Lookup Cloudflare or other similar services should be able to provide any required DDoS protection. Edited September 24, 2021 by WooZy Improved example explanation Link to comment Share on other sites More sharing options...
Question
lucassd
Hi,

I would like to know how to Hide this PDOException, when the machine is restarted for a few seconds expose the server IP.
Thanks in advance!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts