Guest User

Untitled

a guest
Oct 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. // This file powers the ad server
  3.  
  4. header('Content-type: application/json');
  5. header('User-Agent: Mozilla Compatible');
  6.  
  7. $opts = array(
  8. 'http' => array(
  9. 'method' => 'GET',
  10. 'header' => 'User-Agent: Mozilla Compatible',
  11. )
  12. );
  13.  
  14. $context = stream_context_create($opts);
  15.  
  16. if(isset($_REQUEST['url'])){
  17. if(file_get_contents($_REQUEST['url'], false, $context) !== false){
  18. echo 'true';
  19. } else {
  20. echo 'false';
  21. }
  22. }
  23. exit;
Add Comment
Please, Sign In to add comment