--user [email protected]:qwertyuiop
Here's where you store email and login, it's basic auth
https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am doing a curl -F upload=@data.csv http://mysite.com/upload with a linux machine A to the endpoint of my laravel application.
How do I make sure that only allowed users can run this cURL? First I tried to do it by IP, but I found out the IP from the linux machine A changes. I also found this: curl -i --user [email protected]:qwertyuiop -d "data=somedata" https://www.xxxxxxxxxxxxx.co.uk/app/api/v1/clients but I am not sure where would I store [email protected]:qwertyuiop credentials
Please or to participate in this conversation.