I want to pull video url from some website
I write code and modified to select that i want like this
<?php
$ch = curl_init(" http://somewebsite.com/ ");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret = curl_exec($ch);
$str_replace = str_replace("\\", "", $ret);
$link_url = substr($str_replace,66,99);
curl_close($ch);
?>
It can get link but when click that link. It's show error like this
Forbidden
You don't have permission to access
I think that website maybe block access
How can I fix it, Can I get video url from that web?