
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
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
- Limit File Upload count?
Is there a way to limit the number of files a user can upload? I know there's a limit of file size but in my case I'd like to limit the user to only upload x am...
