AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Best plugin protection (https://forums.alliedmods.net/showthread.php?t=134659)

outsiderlv 08-07-2010 14:38

Best plugin protection
 
How can i protect my plugin for my use only? I thaught maybe the plugin can check if server ip is cs.domain.lv, else plugin crashes. How can i do that?

vL. 08-07-2010 15:48

Re: Best plugin protection
 
Use THE FREAKING SHEARCH!!!!!!

infek 08-07-2010 15:49

Re: Best plugin protection
 
http://forums.alliedmods.net/showthread.php?t=134274

OvidiuS 08-07-2010 22:39

Re: Best plugin protection
 
check this thread
https://forums.alliedmods.net/showthread.php?t=134410
i also wanted to know :)

outsiderlv 08-08-2010 02:21

Re: Best plugin protection
 
1) This code isnt working.
2) I need to check domain, not ip. (if server domain is cs.domain.lv)
3) And how to check servername?

new ip[16], port[8]
new komplet[30]
get_cvar_string("ip", ip, charsmax )
get_cvar_string("port", port, charsmax(port))
format(komplet,charsmax(komplet), "%s:%s", ip, port)......
....................
..........................

{
if (equal ( komplet, "213.213.213:27015"))
return PLUGIN_CONTINUE
{
else
{
set_fail_state ( "Illegal USE")
}

wrecked_ 08-08-2010 02:25

Re: Best plugin protection
 
Code:
new YOUR_IP[] = "12.12.21:27015" public plugin_init() {     new ip[20]     get_user_ip( 0, ip, 19 )         if( !equal( YOUR_IP, ip ) )         set_fail_state( "This plugin is private." )             // ... }

outsiderlv 08-08-2010 02:28

Re: Best plugin protection
 
But if YOUR_IP = cs.domain.com, will it work? And getting user 0 ip = server, right?

wrecked_ 08-08-2010 02:36

Re: Best plugin protection
 
Your IP isn't actually cs.domain.com...

To get the server ip go into your server and type
Code:

status
into the console. The real IP is displayed there.

outsiderlv 08-08-2010 02:39

Re: Best plugin protection
 
I know how to get ip. :P Start -> Run.. -> cmd -> ping cs.mydomain.com
But thanks for the help. :)

sb123 08-08-2010 17:00

Re: Best plugin protection
 
I have a MAC address authorization module
If the MAC and IP addresses do not match the plugins will not start
If necessary, please leave your e-mail I will send to you.
I do not want to release here


All times are GMT -4. The time now is 00:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.