how can i secure the content of a php page to access it only with a curl request of a specific server? It should not be possible to get the content in a browser with a request like "https://cms.domain.com/home", but if I create a Zend Client on a specific server it should be possible to get the content.
Is it possible to check the referer or something else?
$adapter = new Zend\Http\Client\Adapter\Curl();
$client = new Zend\Http\Client();
$client->setAdapter($adapter);
$client->setMethod(\Zend\Http\Request::METHOD_GET)
->setUri('https://cms.domain.com/home');
$response = $this->client->send();