Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コンポーネントを開発しましたが、コンポーネントを購入した複数のURLで使用する必要がなくなったため、安全にする必要があります。PHP Curlコードまたはその他の方法でユーザーを制限することはできますか?
はい、使用できます
$_SERVER['HTTP_REFERER'] 、リファラーを確認するには、CURL を使用して一意のキーも渡すので、$_SERVER['HTTP_REFERER'] + 一意のキーを curl で取得し、許可されている場合はそれを処理します ...
<?php echo $_SERVER['HTTP_REFERER']; // you will get the referrer and please check using an IF clasuse ?>