We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Evo Discussions & Support
Search
RFI Scanning
195 Posts
diatomin
Reply #1,
12 years, 3 months ago
Hey everyone,
Is there a way to choose to NOT show the MODX PHP error page and/or message? Someone was doing some snooping - possible RFI vulnerabilities using the following url:
/index.php?file_name[]=
http://www.google.com/humans.txt?
Causing the site to show the PHP error page.
2,877 Posts
mrhaw
Reply #2,
12 years, 3 months ago
This is one way of doing it:
https://forums.modx.com/thread/19997/securing-your-site-wiki-instructions?page=3#dis-post-111535
I have a 404 plugin that sends the full error+user info as an internal message to the MODX inbox. See below messages on my use of blackhole...
@hawproductions |
http://mrhaw.com/
Infograph: MODX Advanced Install in 7 steps:
http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps
Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
195 Posts
diatomin
Reply #3,
12 years, 3 months ago
Hey MrHaw,
Got you
. Will the error still be recorded in the System Events page in the backend?
2,877 Posts
mrhaw
Reply #4,
12 years, 3 months ago
Yes this way it will.
https://github.com/modxcms/evolution/blob/bugfix/manager/includes/document.parser.class.inc.php#L81
track_errors take care of that.
error_reporting records it
and to turn off the display one can set
ini_set(display_errors, '0');
@hawproductions |
http://mrhaw.com/
Infograph: MODX Advanced Install in 7 steps:
http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps
Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower