A Brief Discussion on Security Settings for Virtual Host Websites

Published: 2014-09-05

```html

In today's online world, every website faces network threats from various aspects, the most common of which include: cc attacks, Ddos attacks, xss attacks, sql injection, upload vulnerabilities, malicious code injection, tampering, etc. Next, let's briefly discuss how to protect against such attacks, mainly from two aspects: first, the website program; second, virtual hosting settings.

I. Website Program Security Recommendations

  1. If you use well-known systems such as Dedecms/pbootcms/wordpress, pay attention to upgrading patches to the latest program in time.

  2. The backend login address cannot use conventional paths such as /admin, /system, etc. It is recommended to change it to a slightly more complex path.

  3. The backend management username and password need to be changed to complex ones. Many hacked sites have usernames and passwords that are the initial admin/admin.

  4. Manage the website frequently and handle abnormalities in time. If malicious code injection or Trojan infection occurs, clean it up and perform security settings in time.

II. Virtual Hosting Security Settings.(The main idea is to set the entire site to read-only status, separately grant write permissions to upload directories that require write permissions, but use the directory protection function to disable script execution permissions for that directory.)

For common malicious code injection, tampering, upload vulnerabilities, etc., virtual hosting provides security setting functions, which will be explained one by one below.

(1)Read-only protection. It is recommended to set read-only protection only for directories that do not need updates or important files to prevent tampering by hackers.

For example, homepage files and database connection files that generally do not need updating can be set to read-only. It is not recommended to set the entire site to read-only, as this will make later maintenance more troublesome.

Log in to our company's backend - Business Management - Virtual Hosting Management - Manage - File Management: First set all files of the entire site to read-only protection, as shown below:

image.png

       Then, enter wwwroot and remove read-only protection from directories that the website program needs to write to during operation, such as cache directories, upload directories, access database storage directories, etc.Note that different programs have different write directories and cache directories; please set according to actual conditions.

image.png


(2)Directory protection, which has a good protective effect against upload vulnerabilities. It is recommended to set directory protection for high-risk directories. After setting, the execution permission of the corresponding directory will be canceled. (Especially upload directories with write permissions , dedecms's plus,upload and other directories)


Click Hosting Control Panel-Website Security Management - Directory Protection

clip_image012.jpg

 

After selecting the directory to be set via Browse, click [Add]. After setting, you can upload a program file to this directory to test whether it runs normally           


 III. Virtual Hosting AI Assistant.

An AI Assistant has been newly added on the left side of Virtual Hosting Management.

Log in to the Management Center, enter the Virtual Hosting Control Panel, and find the "AI Assistant" entry in the left navigation bar to use it;

image.png

Scan and remove Trojans and viruses, patch vulnerabilities, add new features, redesign websites... Open the hosting control panel and say a word, and the AI Assistant will help you get it done online!

image.png

image.pngimage.png

 

 

 

Dedecms security settingshttp://www.west.cn/faq/list.asp?unid=729 

 

   At this point, common security settings have been completed. If your website contains an access database, it is recommended to set a relatively complex file name. The file cannot use .mdb as the suffix; you can change it to any name such as test.test, test@3.asp, etc.

Warm tip:The above website security settings can only prevent the website from being hacked to the maximum extent and cannot provide a permanent solution. As a diligent webmaster, you also need to regularly back up your website yourself to prepare for emergencies.

 

Also:西部数码 provides a backup once every 7 days for all virtual hosts(only one copy). Log in to our company's backend - Business Management - Virtual Hosting Management - Manage - Restore Backup to view and perform restoration of the backup provided by our company.


```