If you click the button on the web page on a server called A, you will go to the homepage (e.g., xxxx.com/)) on server B, and is there a way to access only the URL form from server A and prevent access?
I'm using PHP as a server script, but I'm looking for a way to do it with PHP.
If you have any related keywords, I would appreciate it if you could let me know the keywords.
php server
I think there might be a whitelist method that allows only certain IP bands or specific domains by checking the referrer of the request header... For a more flexible and explicit approach, consider a technique called signed URL.
The point is, if the domain of server B is foo.com
, all URLs must be ?GET parameters such as signature=q3o4rbdgfdgf
are attached, so you can only process something after decrypting it with a key on the B server. For the label, URL facade method is introduced from 5.6 to signedRoute()
. If you want to provide Amazon S3 resources in a signed URL, you can get help from the Official SDK . Try it! #MakePHPGreatAgain
© 2024 OneMinuteCode. All rights reserved.