Re: Jak neposlat HTTP_REFERER

From: Cascaval <cascaval (zavinac)>
Date: 20. 06. 2004, 15:45 CEST
> Jediny co me napada je pouzit nejaky redirect. Kdyz pouziju PHP funkci
> Header(), tak klient prosle Referer stranky ktera odkazovala na ten
> redirect.

Urcite to posle?
Ja si tady s tim ted chvili hral, a referer nemuzu ani z Mozilly ani z 
IE vytriskat.

Obsah test.php:
--------------
<?
header('Location: test2.php');
?>

Vysledek:
--------
GET /test/test.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) 
Gecko/20040616
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: cs,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 302 Found
Date: Sun, 20 Jun 2004 13:41:01 GMT
Server: Apache/2.0.49 (Win32) PHP/4.3.5
X-Powered-By: PHP/4.3.1
Location: test2.php
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-2
----------------------------------------------------------
GET /test/test2.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) 
Gecko/20040616
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: cs,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 200 OK
Date: Sun, 20 Jun 2004 13:41:01 GMT
Server: Apache/2.0.49 (Win32) PHP/4.3.5
X-Powered-By: PHP/4.3.1
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html;charset=iso-8859-2
Received on Sun, 20 Jun 2004 15:45:30 +0200

This archive was generated by hypermail 2.1.8 : 20. 06. 2004, 15:45 CEST