Jump to content

how to protect my php script


sarahAria

Recommended Posts

If you are talking about people seeing your php code from their browser - you have no worries. People can't see the php source code.

 

If you are worried about someone getting on your server, you have a lot bigger problems than protecting your source code!

 

If you are wanting to sell your code and don't want the customer to be able to see the code, well then Zend Guard does some good encryption of your code. I've heard it's crackable, but it's not easy.

Link to comment
Share on other sites

Zend is pretty crackable yes, however, if you're looking to secure your source code for resale I'd use something like ioncube instead, as far as I know this hasn't been cracked yet.

 

And yes, if you're worried about people just browsing your php source code from their web browser don't be. It's not possible. They can see the HTML output by the PHP code but not the underlying PHP code, the server just wont allow it.

Link to comment
Share on other sites

Ioncube's been cracked too, there's plenty of those out there.

 

But as the OP didn't ask for something bulletproof, it's probably best for his purposes.  Zend encoded files require some server configuration like he pointed out, Ioncube can be packaged and distributed to work without making changes to php.ini.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.