Adds a #maybe_add_cookies to handle website requiring a specific cookie
This commit is contained in:
24
spec/fixtures/target/platform/wordpress/maybe_add_cookies/vjs.html
vendored
Normal file
24
spec/fixtures/target/platform/wordpress/maybe_add_cookies/vjs.html
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta name="robots" content="noindex">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
function createCookie(name,value,days) {
|
||||
if (days) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime()+(days*24*60*60*1000));
|
||||
var expires = "; expires="+date.toGMTString();
|
||||
}
|
||||
else var expires = "";
|
||||
document.cookie = name+"="+value+expires+"; path=/";
|
||||
}
|
||||
|
||||
createCookie('vjs','2420671338',60);
|
||||
</script><form id="repost" method="post" action=""></form>
|
||||
<script>
|
||||
if((document.cookie.indexOf('vjs=') !== -1))
|
||||
location.reload();
|
||||
</script>
|
||||
<h1>Access to this website is possible only using browser with JavaScript and Cookies enabled.</h1>
|
||||
Reference in New Issue
Block a user