Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // This file powers the ad server
- header('Content-type: application/json');
- header('User-Agent: Mozilla Compatible');
- $opts = array(
- 'http' => array(
- 'method' => 'GET',
- 'header' => 'User-Agent: Mozilla Compatible',
- )
- );
- $context = stream_context_create($opts);
- if(isset($_REQUEST['url'])){
- if(file_get_contents($_REQUEST['url'], false, $context) !== false){
- echo 'true';
- } else {
- echo 'false';
- }
- }
- exit;
Add Comment
Please, Sign In to add comment