, . HTTP_REFERER , ( , javascript, ).
(, "Referer:" ), , curl wget, BSD Linux ( OS/X). MS Windows, wget Cygwin.
wget -O - --referer="http://example.com/some/path" http://example.com/
curl -e "http://example.com/some/path" http://example.com/
, -, "" , . , ( "B" ) , ( "A" ), .
If you store a session cookie, you can insert some logic into page "A", which sets the boolean variable. Then add logic to page "B", which checks to see if the variable has been set.
I will leave this as an exercise for the reader to figure out how to do this in ASP.NET. (Because I'm a PHP programmer. -])
ghoti source
share