Rank 3: Container
Can I get IP of user, who execute function? This is necessary for security checks
Votes
0
Replies
9
Participants
Unknown
Messages
10
Rank 3: Container
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...
Rank 3: Container
How can i get headers in python function?
Rank 3: Container
Rank 3: Container
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?
Rank 3: Container
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"
}