stuppid_bot

Untitled

May 13th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. $headers = getallheaders();
  4. unset( $headers['Host'] );
  5. $headers['Cookie'] = '';
  6. // заменяем keep-alive на close, чтобы не ждать закрытия соединения
  7. $headers['Connection'] = 'close';
  8.  
  9. $header = '';
  10.  
  11. foreach ($headers as $name => $value) {
  12.     $header .= "$name: $value\r\n";
  13. }
  14.  
  15. $data = file_get_contents( $_GET['url'], null, stream_context_create( array( 'http' => array( 'method' => 'GET', 'header' => $header ) ) ) );
  16. header('Content-type: text/plain');
  17. echo($data);
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment