Answer the question
In order to leave comments, you need to log in
How can I bypass Antidudos?
How can I parse in php to bypass Antidudos protection??? to parse
// САЙТ
$url = 'https://arizona-rp.com';
// НАЧАЛО
$ch = curl_init($url);
// ПОДГОТОВКА ЗАГОЛОВКОВ
$uagent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/531.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36";
// ВСЯКИЕ ПАРАМЕТРЫ
curl_setopt($ch, CURLOPT_USERAGENT, $uagent);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_REFERER, 'https://google.com');
curl_exec($ch);
// ДОБАВЛЯЕМ КУКИ В ПАРАМЕТРЫ
curl_setopt($ch, CURLOPT_COOKIE, "PMBC=96152e8e9a0168a731539c5e52c6b39a; PHPSESSID=jl0i13pn3157qca807jgp0jqa7; ServerName=WoW+Circle+3.3.5a+x5; serverId=1");
$html = curl_exec($ch);
// КОНЕЦ
echo($html);
Answer the question
In order to leave comments, you need to log in
Most likely, the site is firing at you by headers, to bypass you need to pass exactly the same headers that a regular browser would send. Open the site, then open the console, the Network tab and see what headers are sent when viewing the site, then pass the same to cURL as the browser.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question