Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Block PHP to one domain

    Hi
    I am trying to protect my php script from piracy. I do not want to use a commercial protection script, instead i was wondering if there was a bit of php code i could use to make my code only run on a certain domain specified? I could then encode this script so that they can't change this. Any ideas?

    thanks

  • #2
    Regular Coder devinemke's Avatar
    Join Date
    Dec 2004
    Location
    NYC
    Posts
    443
    Thanks
    0
    Thanked 12 Times in 11 Posts
    is this an app that plan on distributing or hosting yourself? if you are running it on a host that you admin then outside users will not be able to see your source, only what is spit back to the browser. if this is an app that you plan on distributing to run on other hosts then be advised that PHP is an interpreted language and the source would be open to anyone who uses it unless you use something like Zend Guard.

  • #3
    New Coder
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    5
    Thanked 0 Times in 0 Posts
    I plan on distributing it but i dont want to use zend guard or similar,

    Thanks

  • #4
    Regular Coder PHP6's Avatar
    Join Date
    Aug 2008
    Location
    Czech Republic
    Posts
    238
    Thanks
    18
    Thanked 34 Times in 33 Posts
    Quote Originally Posted by ojsimon View Post
    I plan on distributing it but i dont want to use zend guard or similar,Thanks
    In that case just Zend or NuCoder could help you. The first one is time more expansive and is mostly for professionals while the second is much cheaper but give the same safety.

    Without them your script could be easily changed and the code which checks the license could be simple removed…

    p.s. The only solution is so called obfuscators... they change function’s and variable’s names with random sets of char. After obfuscation your code is almost "impossible" to analyze. As far as know they are free to use


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •