Level 50
Couple of options:
- validate the requesting host / ip
- pass a key known only to yourself within the the rewquest header i.e. a bearer token
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone, I am requesting a post from within the project in Laravel, but I do not want 3rd party users to pull data from here using Curl. How do I prevent this? Passing CSRF is not too hard, I tried.
Please or to participate in this conversation.