Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto LticH; u1079: foreach ($blocked_user_agents as $blocked_user_agent) { if (s..

Decoded Output download

 
<?php 
 goto LticH; u1079: foreach ($blocked_user_agents as $blocked_user_agent) { if (stripos($user_agent, $blocked_user_agent) !== false) { header("HTTP/1.0 403 Forbidden"); die("Acesso negado."); } } goto jz7_a; MGyrE: $blocked_user_agents = array("HTTrack", "WebCopier", "Teleport", "wget", "curl", "offline", "SiteSucker", "Sucker", "WebZIP"); goto w89NT; LticH: $blocked_referers = array("saveweb2zip.com", "httrack.com", "webcopier.com", "teleport-pro.com"); goto Iy_Zz; oH4io: foreach ($blocked_referers as $blocked_referer) { if (strpos($referer, $blocked_referer) !== false) { header("HTTP/1.0 403 Forbidden"); die("Acesso negado."); } } goto MGyrE; Iy_Zz: $referer = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ''; goto oH4io; w89NT: $user_agent = isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : ''; goto u1079; jz7_a: ?> 

Did this file decode correctly?

Original Code


<?php
 goto LticH; u1079: foreach ($blocked_user_agents as $blocked_user_agent) { if (stripos($user_agent, $blocked_user_agent) !== false) { header("\110\x54\124\x50\57\61\x2e\x30\x20\x34\x30\x33\40\106\157\162\x62\151\x64\144\145\x6e"); die("\x41\x63\145\x73\x73\157\40\156\145\147\x61\144\x6f\x2e"); } } goto jz7_a; MGyrE: $blocked_user_agents = array("\x48\124\x54\162\141\143\x6b", "\127\145\x62\x43\x6f\x70\x69\x65\x72", "\124\x65\154\x65\x70\157\162\164", "\x77\147\x65\x74", "\x63\x75\x72\x6c", "\157\x66\x66\154\151\x6e\x65", "\x53\x69\x74\145\123\165\x63\x6b\145\x72", "\123\x75\143\x6b\145\x72", "\x57\145\142\x5a\x49\x50"); goto w89NT; LticH: $blocked_referers = array("\x73\x61\166\145\x77\x65\142\62\172\x69\x70\x2e\x63\x6f\x6d", "\x68\164\164\162\141\x63\153\56\143\x6f\155", "\x77\x65\142\143\x6f\x70\151\x65\162\56\x63\157\155", "\x74\x65\x6c\145\x70\x6f\x72\x74\55\160\162\x6f\56\143\157\155"); goto Iy_Zz; oH4io: foreach ($blocked_referers as $blocked_referer) { if (strpos($referer, $blocked_referer) !== false) { header("\x48\124\x54\x50\57\61\56\60\x20\64\60\63\x20\x46\157\162\x62\x69\144\x64\145\x6e"); die("\x41\x63\x65\x73\x73\x6f\x20\156\145\147\141\x64\x6f\56"); } } goto MGyrE; Iy_Zz: $referer = isset($_SERVER["\110\x54\124\120\x5f\122\105\106\x45\x52\x45\x52"]) ? $_SERVER["\x48\124\x54\x50\137\x52\105\x46\105\122\105\x52"] : ''; goto oH4io; w89NT: $user_agent = isset($_SERVER["\x48\124\x54\x50\137\125\x53\x45\122\x5f\x41\x47\x45\116\x54"]) ? $_SERVER["\x48\124\124\x50\x5f\x55\123\105\x52\137\x41\107\x45\116\124"] : ''; goto u1079; jz7_a: ?>

Function Calls

None

Variables

None

Stats

MD5 7b62a554cad6ab1a014f0ba13b9c7657
Eval Count 0
Decode Time 49 ms