Code: Select all
defined( '_VALID_MOS' ) or die( 'Restricted access' );
Thank you and good luck
Moderator: General Support Moderators
Code: Select all
defined( '_VALID_MOS' ) or die( 'Restricted access' );
I don't know enough to debate the finer points about the code language... but my experience tells me that the hacker problem was solved once I made this change.To clarify the information about this line: it is NOT needed in any file. If you have a PHP file that only contains a class and nothing more, no code is executed. That means that you can include the _VALID_MOS line, but it is no security hole if it's not there.
Code: Select all
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
Code: Select all
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
Maybe , maybe not. That's the questionoMama wrote: Would my site have been safer if I did not have the forum registration bridge in place? Or was it doomed no matter what?
Curious.
Corinne