Skip to content

PHP Prevent files from being loaded directly

PHP Prevent files from being loaded directly

if ( !defined('ABSPATH') ) {
    header( 'Status: 403 Forbidden' );
    header( 'HTTP/1.1 403 Forbidden' );
    exit();
}
 
Enjoyed the content ? Share it with your friends !
Published inProgramming

Be First to Comment

Leave a Reply

Your email address will not be published.