Raised This Month: $ Target: $400
 0% 

Best plugin protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
outsiderlv
Senior Member
Join Date: Mar 2010
Old 08-07-2010 , 14:38   Best plugin protection
Reply With Quote #1

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?
outsiderlv is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 08-07-2010 , 15:48   Re: Best plugin protection
Reply With Quote #2

Use THE FREAKING SHEARCH!!!!!!
vL. is offline
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 08-07-2010 , 15:49   Re: Best plugin protection
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=134274
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-07-2010 , 22:39   Re: Best plugin protection
Reply With Quote #4

check this thread
https://forums.alliedmods.net/showthread.php?t=134410
i also wanted to know
OvidiuS is offline
Send a message via Skype™ to OvidiuS
outsiderlv
Senior Member
Join Date: Mar 2010
Old 08-08-2010 , 02:21   Re: Best plugin protection
Reply With Quote #5

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")
}
outsiderlv is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 08-08-2010 , 02:25   Re: Best plugin protection
Reply With Quote #6

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." )             // ... }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
outsiderlv
Senior Member
Join Date: Mar 2010
Old 08-08-2010 , 02:28   Re: Best plugin protection
Reply With Quote #7

But if YOUR_IP = cs.domain.com, will it work? And getting user 0 ip = server, right?
outsiderlv is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 08-08-2010 , 02:36   Re: Best plugin protection
Reply With Quote #8

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.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
outsiderlv
Senior Member
Join Date: Mar 2010
Old 08-08-2010 , 02:39   Re: Best plugin protection
Reply With Quote #9

I know how to get ip. Start -> Run.. -> cmd -> ping cs.mydomain.com
But thanks for the help.
outsiderlv is offline
sb123
Senior Member
Join Date: Jan 2007
Old 08-08-2010 , 17:00   Re: Best plugin protection
Reply With Quote #10

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
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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