Quote:
Originally Posted by arvEL.
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)
__________________