-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.html
More file actions
29 lines (29 loc) · 1.25 KB
/
Copy pathexample.html
File metadata and controls
29 lines (29 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html>
<header>
<meta charset="utf-8" />
<title>ReferrerKiller demo</title>
<script src="ReferrerKiller.js"></script>
</header>
<body>
<h1>Demonstration of how to prevent your browser of sending the referrer http header.</h1>
<h3>Check the hack's source code <a href="ReferrerKiller.js">here</a>.</h3>
<h2>Links</h2>
<ul>
<li>Not sending referrer <span id="url_kill_referrer"></span></li>
<li>Sending referrer <a href="http://www.xhaus.com/headers" target="destiny">http://www.xhaus.com/headers</a></li>
</ul>
<iframe name="destiny" width="100%" height="460" src="about:blank"></iframe>
<script>
document.getElementById('url_kill_referrer').innerHTML = ReferrerKiller.linkHtml( 'http://www.xhaus.com/headers', 'http://www.xhaus.com/headers', { target: 'destiny' }, { verticalAlign: 'bottom' } );
</script>
<h2>Image uploaded to pixhost</h2>
<ul>
<li>Without sending referrer: <br/> <span id="image_kill_referrer"></span></li>
<li>Sending referrer: <br/> <img src="http://img4.pixhost.org/images/1693/14341576_a_fun.jpg" /></li>
</ul>
<script>
document.getElementById('image_kill_referrer').innerHTML = ReferrerKiller.imageHtml('http://img3.pixhost.org/images/2669/14341603_a_fun.jpg');
</script>
</body>
</html>