I can't parse the page, I tried using file_get_contents and curl, the output is always the same:

<html><head></head> <body> <script> var xmlhttp = new XMLHttpRequest(); function eraseCookieFromAllPaths(name) { var pathBits = location.pathname.split("/");var pathCurrent = " path=";document.cookie = name + "=; expires=Thu, 01-Jan-1970 00:00:01 GMT;";for (var i = 0; i < pathBits.length; i++) {pathCurrent += ((pathCurrent.substr(-1) != "/") ? "/" : "") + pathBits[i]; document.cookie = name + "=; expires=Thu, 01-Jan-1970 00:00:01 GMT;" + pathCurrent + ";";}} eraseCookieFromAllPaths("BHC"); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var a=xmlhttp.responseText;document.cookie="BHC="+a+"; path=/";document.location.href="/"; } }; xmlhttp.open("GET", "/banhammer/pid", true);xmlhttp.send(); </script> </body></html> 

Can someone help with advice?

  • but what is expected? - teran
  • And what does PHP have to do with when you try to get the code through an XmlHttpRequest using an AJAX request? - Daniel Protopopov
  • Am I talking about AJAX? I have this output after the simplest example using file_get_contents. And I need to get the page code with which you can continue to work. - nameregger
  • Apparently there is some kind of protection against DDoS or from bots downloading content. Some kind of ajax request is being generated. You can try using something like phantomjs to execute javascript while parsing - dizballanze

0