Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function restrict_template_by_domain() { // $allowed_domain = 'vni.lcv.myb..
Decoded Output download
<?
function restrict_template_by_domain() {
//
$allowed_domain = 'vni.lcv.mybluehost.me'; //
//
$current_domain = $_SERVER['HTTP_HOST'];
//
if ($current_domain !== $allowed_domain) {
wp_die('Access Denied. You are not authorized to access this page.');
}
}
add_action('init', 'restrict_template_by_domain');
?>
Did this file decode correctly?
Original Code
function restrict_template_by_domain() {
//
$allowed_domain = 'vni.lcv.mybluehost.me'; //
//
$current_domain = $_SERVER['HTTP_HOST'];
//
if ($current_domain !== $allowed_domain) {
wp_die('Access Denied. You are not authorized to access this page.');
}
}
add_action('init', 'restrict_template_by_domain');
Function Calls
add_action | 1 |
Stats
MD5 | 296395b47cf253cb8fffb9e56b1dfb9b |
Eval Count | 0 |
Decode Time | 38 ms |