Jump to content
  • 0

Hide PDOExeception DDOS help!


lucassd

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  08/28/21
  • Last Seen:  

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!
e3caxi0.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

i think. you can set this in htaccess to set page for this.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  08/28/21
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  08/28/21
  • Last Seen:  

I would greatly appreciate your help on this, what should I add on my htaccess? 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   12
  • Joined:  09/14/21
  • Last Seen:  

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 by WooZy
Improved example explanation
Link to comment
Share on other sites

×
×
  • Create New...