
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
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
- Appwrite messaging api error
```=== Push Notification Function Started === Endpoint: https://fra.cloud.appwrite.io/v1 Project: 6899062700398ffeae4f Database: threed-dating-db Notification f...
- function unable to detect client ip
Hi I have hosted appwrite on self hosted server. Currently I don't have any domain. I am accessing through ip. I have created one function which should detect t...
