How to protect PHP code? Some paid functions do not need to be released open-source

Source: Internet
Author: User
How to protect PHP code? Some paid functions do not want to be released open-source. I want to know the methods beyond zend compilation, because some client hosts do not support the code after zend compilation.
The system is open-source and only needs to protect a small part of the charging function. can it be encapsulated into other Files? for example, I have seen an IP address area query function, the database name tinyipdata. dat, and then you can use php to query, which can also run on any host that supports PHP.


Reply to discussion (solution)

Files accessed using php code can be named at will

Php code itself can also do some self-decoded scrambling code processing

Php code itself can also do some self-decoded scrambling code processing

Can you give a simple example?

A very simple example

Eval (base64_decode ('cghwaw5mbygpow = '));
You can't say too much. It doesn't make sense to say too much. you know this.
Over time
Multi-layer nesting with Caesar encryption will not be available to ordinary people

Thank you, boss upstairs. I have implemented coding for Commercial Code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.