IP Retriever
Description
Adds a way to get the user's IP address by sending a web request and extracting the result.
How to use the extension
This extension gets the user's public IP address via a web request to ipify.
⚠️ Important: Before storing any IP address in a database, it is strongly recommended to hash it. This helps protect user privacy and prevents unauthorized access to raw IP addresses. ⚠️
Instructions (how to use it)
Actions
- Call
IP_Adress::GetIPto fetch the IP.
Conditions
- Use
IP Adress is readyto check if the IP has been retrieved. - Use
Failed to get the user's IP Adressto check if the action has failed.
Expressions
- Use
IP_Adress::Adress()to get the parsed IP as a string. - Use
IP_Adress::Error()to get the error message if an error occurred.
Example:
When combined with a database system such as Firebase Realtime Database, this extension can be used to implement IP-based bans. This allows developers to prevent users from rejoining a multiplayer lobby after engaging in fraudulent or disruptive behavior, ensuring a safer and more secure gameplay environment.
Checklist
- [x] I've followed all of the best practices.
- [x] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [x] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
Extension file
Extension by @ReaverZx
You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type !update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:
!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)
It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!