Raised This Month: $ Target: $400
 0% 

[HELP] protected plugin for LAN


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-24-2015 , 21:48   Re: [HELP] protected plugin for LAN
Reply With Quote #7

Quote:
Originally Posted by arvEL. View Post
hi guys, here i have codes to protect plugin to work on IP ADDRESS

i want automatic detection about LAN IP not public IP
and protect this plugin with LAN IP
Use security.inc that was linked to above.

Put the below in plugin_init(), compile and do a map change. This will create the file in your configs dir.
PHP Code:
security_md5_create_file("7"17
Then remove that line and put the below in plugin_init() and compile. It should now be protected. To test the protection, modify the "7" to something else like "8" and it should give you the error about it not being permitted.
PHP Code:
security_md5("7"17
__________________

Last edited by Bugsy; 11-26-2015 at 10:47.
Bugsy is offline
 



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 18:07.


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