mirror of
https://github.com/Pathduck/pathduck.github.io.git
synced 2025-12-29 11:45:20 -05:00
change referrer service
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
[ 0 Jul 9 2022] <a class="DIR" href="./login/">login</a><br>
|
||||
[ 0 Dec 30 2022] <a class="DIR" href="./media-fullscreen/">media-fullscreen</a><br>
|
||||
[ 0 Jul 9 2022] <a class="DIR" href="./pdf/">pdf</a><br>
|
||||
[ 0 Jul 9 2022] <a class="DIR" href="./referrer/">referrer</a><br>
|
||||
[ 0 Jul 14 19:33] <a class="DIR" href="./referrer/">referrer</a><br>
|
||||
[ 0 Jul 14 16:52] <a class="DIR" href="./session-storage/">session-storage</a><br>
|
||||
[ 0 Jul 9 2022] <a class="DIR" href="./translate/">translate</a><br>
|
||||
[ 0 Oct 7 2022] <a class="DIR" href="./video-mkv-aac/">video-mkv-aac</a><br>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<link rel="icon" href="/favicon.ico" sizes="32x32" />
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">default</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">default</a></h1>
|
||||
<br>This should be same as "strict-origin-when-cross-origin".
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
test/referrer/js-referrer.html
Executable file
14
test/referrer/js-referrer.html
Executable file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Referrer-policy test page</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>The referrer of the current document is:</p>
|
||||
<strong><pre id="demo"></pre></strong>
|
||||
<script>
|
||||
document.getElementById("demo").innerHTML = document.referrer;
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="no-referrer-when-downgrade">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">no-referrer-when-downgrade</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">no-referrer-when-downgrade</a></h1>
|
||||
<br>This should show full URL.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="no-referrer">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">no-referrer</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">no-referrer</a></h1>
|
||||
<br>This should show no referrer / hidden
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="origin-when-cross-origin">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">origin-when-cross-origin</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">origin-when-cross-origin</a></h1>
|
||||
<br>This should show host/domain only.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="origin">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">origin</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">origin</a></h1>
|
||||
<br>This should show host/domain only.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="same-origin">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">same-origin</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">same-origin</a></h1>
|
||||
<br>This should show no referrer / hidden
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="strict-origin-when-cross-origin">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">strict-origin-when-cross-origin</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">strict-origin-when-cross-origin</a></h1>
|
||||
<br>This should show host/domain only.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="strict-origin">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">strict-origin</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">strict-origin</a></h1>
|
||||
<br>This should show host/domain only.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="referrer" content="unsafe-url">
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="https://whatsmyreferer.com">unsafe-url</a></h1>
|
||||
<h1><a href="https://websniffer.com/my">unsafe-url</a></h1>
|
||||
<br>This should show full URL.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
|
||||
<script type="text/javascript" src="storage-test.js"></script>
|
||||
|
||||
<button onclick="myFunction()">Open Popup</button>
|
||||
<button onclick="openPopup()">Open Popup</button>
|
||||
|
||||
<script>
|
||||
function myFunction() {
|
||||
function openPopup() {
|
||||
window.open("index.html", "_blank", "width=600, height=500");
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user