Avatar of Starquest321
Starquest321
 asked on

php protect work

I want to prevent others from copying my work. I have generated php file uploaded to my server and running my site. Now if someone goes into the web browser and does "view source" he can see my code. How can I prevent that?

I know that there is software called php codelock....but is that for the actual php files themselves? Any ideas?
PHPJavaScriptHTML

Avatar of undefined
Last Comment
Dave Baldwin

8/22/2022 - Mon
Dan Craciun

You cannot see the php code with "view source". Only the generated output (usually HTML).

HTH,
Dan
Starquest321

ASKER
OK - - - so if they don't have the original file my code is safe from external browser, right?
ASKER CERTIFIED SOLUTION
Dan Craciun

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

If you wanted to be safe from prying eyes on the server, you could use IonCube or Zendloader to encrypt your PHP.  They are not free however and must be installed on the server.  You can't install them on shared hosting but some hosts do have those available.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck