Bernardo da Silva Posted August 12, 2020 Share Posted August 12, 2020 Hello! I have a question! I want to make a protection for my script with IP Protection, where the script only work when the IP of hosting is authorized for me, that's me the script's owner. Someone to do this? Link to comment
iPrestege Posted August 13, 2020 Share Posted August 13, 2020 You can use GetPlayerIP or GetPlayerSerial. Link to comment
Bernardo da Silva Posted August 13, 2020 Author Share Posted August 13, 2020 2 minutes ago, iPrestege said: You can use GetPlayerIP or GetPlayerSerial. But I will like to get the IP of the host, where the server is hosted. Link to comment
iPrestege Posted August 13, 2020 Share Posted August 13, 2020 2 minutes ago, Bernardo da Silva said: But I will like to get the IP of the host, where the server is hosted. GetServerConfigSetting Link to comment
Bernardo da Silva Posted August 13, 2020 Author Share Posted August 13, 2020 11 hours ago, iPrestege said: GetServerConfigSetting And only me, can change the IP in the string? Link to comment
SpecT Posted August 13, 2020 Share Posted August 13, 2020 (edited) @iPrestege is suggesting a function to get the server IP from the server configuration and compare it with the IP you want to authorize. This way the script won't work on other servers (if this is what you meant). Here is an example: if (getServerConfigSetting("serverip") == "Your.Server.IP.Here") then ... end Edited August 13, 2020 by SpecT 1 Link to comment
antonymorota Posted July 22, 2023 Share Posted July 22, 2023 how do i protect my resource co ip or license Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now