Jump to content
  • 0
lucassd

Hide PDOExeception DDOS help!

Question

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
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
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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.