I am working on an app in WordPress in which i have to make some limitations on functionalities. Those features or functionalities can only be unlocked completely if user buys our premium app. But if some developer downloads free version and removes the limitations, it will become free for him. What should i do, how do i hide or safeguard my code from being changed.
It's not very quick but it's relatively simple. Your premium version needs key algorithms or data to sit on a server of yours.
The plugin comes in a free version that talks to your server's "free, public API" and gets limited / worse / free stuff out of it.
They payware version involves the customer entering a registered API key they must purchase from you. That key is recognized by your server and it delivers premium data.
Of course, what to give away or to keep past the pay-wall is for you to decide. Some plugins are straightforward, all you need to do is to give limited data / "runs per day" / "dumber algo" and you are done.
Others need to provide limited data but lots of real time features, in this case it's going to be much harder to keep functionality on your server. But it's still done, look at some of the most famous WP plugins, their "pro" version usually works like I have described.
If it's a theme or plugin, you can separate the free version code from the premium one. Then the user will just replace the free version folder by the premium one.
j
stuff ;)
well it's a non compiled language so it's hard without things like ioncube, but you could obfuscate the code so it's "unreadable" the developer than at least would've to work for it ;)
you could use an online callback and so on but you're in a script language so basically the answer is ... you don't unless you use a binary that's delivered with your php code which is actually compiled ....