In this site, it requires Yes
click before entering the page.
<a id="ok" href="./">Yes</a>
<script>
$('#ok').bind("click", function(e) {
e.preventDefault();
var min=60*24*7;
var dt=new Date();
dt.setTime(dt.getTime()+(min*60*1000));
$.cookie('check','1'{domain:'exmaple.com',path:'/',expires:dt});
window.location.reload();
}
</script>
Now I checked the source and understood it needs cookie as check=1
.
then, I crawl like this in the php script using file_get_contents
.
$url = "https://www.example.com";
$source = file_get_contents($url,false,$context);
How can I set the cookie ? or is it possible??