Raised This Month: $ Target: $400
 0% 

How To Protect a Private Plugin!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cHeesY.
Member
Join Date: Nov 2013
Old 08-18-2014 , 07:42   How To Protect a Private Plugin!!
Reply With Quote #1

Hello Guys
I want to protect a plugin and I have Script

#define IP_SERVER_LICENTIAT "IPSERVERORT"

but i do not know where to write this below SCRIPT ??

new IP_LICENTIAT[20];
get_user_ip(0, IP_LICENTIAT, 21, 1);

if(!equal(IP_LICENTIAT, IP_SERVER_LICENTIAT))
{

Help??
__________________
cHeesY. is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-18-2014 , 08:30   Re: How To Protect a Private Plugin!!
Reply With Quote #2

As discussed many times, it is impossible to protect your plugin, there will always be a way around whatever kind of block you put in.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
cHeesY.
Member
Join Date: Nov 2013
Old 08-18-2014 , 10:09   Re: How To Protect a Private Plugin!!
Reply With Quote #3

you tell me, how can I do it, that I posted earlier??
__________________
cHeesY. is offline
Estland
Member
Join Date: Nov 2012
Old 08-18-2014 , 10:10   Re: How To Protect a Private Plugin!!
Reply With Quote #4

Use something like:

Code:
#include <amxmodx>

new const g_szServerIP[] = "IP:PORT";

public plugin_init() 
{
    new szIP[20];
    get_user_ip(0, szIP, charsmax(szIP), false);
    
    if( !equal(szIP, g_szServerIP) )
    {
        set_fail_state("This plugin is protected!");
    }
}
Estland is offline
cHeesY.
Member
Join Date: Nov 2013
Old 08-19-2014 , 13:44   Re: How To Protect a Private Plugin!!
Reply With Quote #5

Quote:
Originally Posted by Estland View Post
Use something like:

Code:
#include <amxmodx>

new const g_szServerIP[] = "IP:PORT";

public plugin_init() 
{
    new szIP[20];
    get_user_ip(0, szIP, charsmax(szIP), false);
    
    if( !equal(szIP, g_szServerIP) )
    {
        set_fail_state("This plugin is protected!");
    }
}
Thank you, but where should I write this, because plugins is created ready, and I do not know where to put you, at the beginning of plugins or where?
__________________
cHeesY. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-19-2014 , 14:23   Re: How To Protect a Private Plugin!!
Reply With Quote #6

Quote:
Originally Posted by cHeesY. View Post
Thank you, but where should I write this, because plugins is created ready, and I do not know where to put you, at the beginning of plugins or where?
You don't. It won't protect your plugin. It's not possible to reliably protect your plugin.
__________________
fysiks is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-18-2014 , 10:48   Re: How To Protect a Private Plugin!!
Reply With Quote #7

For gods sake, please admins, close such topics before it all starts again...
mottzi is offline
Send a message via MSN to mottzi
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 08-18-2014 , 13:16   Re: How To Protect a Private Plugin!!
Reply With Quote #8

1:
Code:
    static szIP[ 22 ]; get_user_ip( 0, szIP, charsmax( szIP ), 0 );
    
    if ( !( equali( szIP, "ip" ) ) )
        set_fail_state( "Error: Fail state wrong IP Address." );
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-18-2014 , 13:20   Re: How To Protect a Private Plugin!!
Reply With Quote #9

This can be easy hacked with net_adress cvar.
__________________
HamletEagle is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 08-18-2014 , 13:34   Re: How To Protect a Private Plugin!!
Reply With Quote #10

Quote:
Originally Posted by HamletEagle View Post
This can be easy hacked with net_adress cvar.
Mine?
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Reply


Thread Tools
Display Modes

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 13:01.


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