I am trying to fetch webpage content with simple_html_dom()
but I get 403 Forbidden
.
When I am trying through the browser, I do have access.
$target_url ='http://<URL>';
$html = new simple_html_dom();
$html->load_file($target_url);
I am trying to use Guzzel Package, but I receive this error again.
$client = new \GuzzleHttp\Client();
$result = $client->request('GET', 'http://<URL>');
dd($result->getBody());
What should I do ?