Sign in
chromium
/
chromium
/
src
/
4b7f2d40ed547f844c3b42b712f035e90357e1e5
/
.
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
security
/
resources
/
green-if-referrer-is-origin.php
blob: 5d2f84e37a92bba588387cbb7ba70803390baf2b [
file
] [
log
] [
blame
]
<?
php
header
(
'Content-Type: image/png'
);
if
(
$_SERVER
[
'HTTP_REFERER'
]
!=
'http://127.0.0.1:8000/'
)
{
$img
=
'red200x100.png'
;
}
else
{
$img
=
'green250x50.png'
;
}
echo file_get_contents
(
$img
);
?>