Can I get IP of user, who execute function? This is necessary for security checks
try looking at the headers....it might be in there...
How can i get headers in python function?
There isn't any information about ip
You should check req.headers from your request object
https://appwrite.io/docs/products/functions/development#request
Hey @polbuhanky can we close this issue?
Yes, thanks
[SOLVED] Getting IP of user in a function
Hi there! How did you solved it? The only stuff I get in headers is: { "host":"localhost", "x-appwrite-trigger":"http", "x-appwrite-user-id":"654420c...", "x-appwrite-user-jwt":"eyJ0...", "x-appwrite-continent-eu":"false", "content-type":"application/x-www-form-urlencoded", "connection":"keep-alive", "content-length":"296" }
Recommended threads
- Cannot create cloud function due to this...
As I try to deploy a new function to Github I get this error message: ``` Unable to clone code repository: fatal: ' ' is not a valid branch name hint: See `man ...
- How to use TS for creating appwrite func...
I was making a few appwrite functions but on doing the appwrite init setup process i always got main.js. Is there any way i can use TS?
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...