Jump to content

protect PHP source code


cbassett03

Recommended Posts

Is there a way to protect PHP source code from being viewed?

 

I was playing with HTML and PHP, and from what I can see, if you simiply link to a PHP file (without any parameters) and if someone right-clicks on the link and says "Download Target" or "Save Link As" from a browser, they can sometimes download the PHP file with source and all.

 

How can I either prevent this from being done or protect the source code of my PHP files?  I'm not so concerned about PHP files with SQL queries in them, but more about PHP files with information regarding accessing a database (username, password, host information, etc).

 

 

Link to comment
https://forums.phpfreaks.com/topic/183936-protect-php-source-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.