I have seen many CMS and other website that source is hidden from public
view, like wordpress config.php, whmcs configuration.php, and more
files are hidden, but inside it have code but when we check in browser
view source it display none.
config doesn’t produce any output. (well, except maybe whitespace)
install is in the admin folder so you need to be logged in as Admin.
license .txt is not meant to be hidden, it is the
GNU GENERAL PUBLIC LICENSE
If you don’t see it, it may have been deleted.
PHP is a server-side technology, PHP source code stored and executed on the server, so in browser you can see only results produced by that code. But HTML and JS are client-side technologies. That means HTML and JS source code stored and executed in browser, so you can see it.
I don’t know what you mean by hiding the file. In WordPress, it is a security measure that you don’t install your files in a folder that’s called “blog” or “wp” or “wordpress” because you’d be making a bit easier for a hacker to get into your WordPress installation. So you can ofuscate your installation by renaming the main folder where WordPress installs to something crazy like “Ilovedoingmyblogging” and then use your .htaccess file so the url doesn’t shows the name of the folder.
As people have said above, there’s no need to find a way to hide your PHP code because end users will never see it. It’s executed on the server, not in the browser, so all the user sees is the result of your echo() statements.
Developer tools (now available in all modern browsers) can also allow you to see the unobfuscated content of the page
I think i read somewhere before… if your hosting support “cloudflare”, that company have an app that can protect source code. Maybe you can do little research about it. Hopefully you’ll find what you’re looking for. Thanks