Offering advice on keeping your website source code secure:
To ensure the security of your website source code, it is important to take certain precautions. Firstly, refraining from making your site publicly accessible on the Internet is key. Keep it available only on private machines that you have complete control over. Avoid exposing any USB ports to users and restrict internet access to prevent them from downloading potentially harmful hacker tools.
Consider creating a custom browser build using tools like Electron, which will limit functionality to only display your website without any additional features that could be exploited. Installing Linux and configuring a user account with minimal privileges can also enhance security measures. Ensure that users do not have access to text input fields to prevent unauthorized entry of malicious code.
Furthermore, it may be beneficial to fortify the physical environment where your computer is located. Setting up a Faraday cage by covering walls with a metal grid can shield against potential hacking attempts through various means such as timing attacks or side channels. Strictly monitor individuals entering the premises and prohibit electronic devices, analog cameras, or paper notebooks to prevent unauthorized access to sensitive information.
Ultimately, it's important to recognize that while safeguarding your source code is crucial, it is equally vital to write secure code and regularly test and audit it for vulnerabilities. Remember, in most cases, the average person has little interest in stealing your website source code when there are countless other sources readily available. Focus on maintaining strong security practices rather than solely relying on secrecy.