b / s and c / s architecture

In recent inspection server applications, to b / s and c / s or do not understand, make a note here

1, B / S structure

B is the English word "Browser" the first letter, that means the browser; S is the first letter of the English word "Server", that means the server. B / S is the "Browser / Server" is the abbreviation of "browser / server" mode.

B / S structure, with the development of the Internet, web after the rise of the emergence of a network structure model. This model unifies the client, so that the core business processing is completed on the server side. You only need to install a browser on your computer or mobile phone, you can exchange data via web Server database.

It is not clear under the "B / S" What is the structure of it? We are not using this structure it in a day? On the phone or computer using the browser Baidu search, read the news and so is the use of "B / S" structure for data exchange

This "B / S" structure has many advantages, easier to maintain and upgrade, the client is a browser, the basic need to maintain, only need to maintain and upgrade the server can, of course, there are many benefits, which vary in introduced a.

 

Two, C / S structure

C is the English word "Client" the first letter of that client's meaning, C / S is the abbreviation of "Client / Server", namely "client / server" mode.

C / S structure is a software system architecture, it is also very common in life. This structure will need to handle traffic is reasonably assigned to the client and the server, which can greatly reduce the communication cost, but relatively difficult to upgrade and maintenance. Such as micro letter we installed in your phone, qq, it is the king of glory applications such as C / S structure.

the difference

Different hardware environments, C / S is usually built on a private network, small scale network environment. The B / S is built over the WAN, adaptable, range, usually operating systems and browsers on the line; C / structure is more secure than the B / S structure, because the user base is relatively fixed, protection stronger for information; B / S structure is relatively simple maintenance and upgrade, and the upgrade is relatively difficult C / S structure maintenance;

Let me summarize is accessed by a web, a client software is required to access

 

csrf and ssrf

ssrf (Server-Side Request Forgery, server request forgery) and csrf (Cross-site request forgery) cross-site request forgery

In fact, from the literal meaning can be understood

ssrf by server-side request forgery attack

csrf is attacked by CSRF

 

Guess you like

Origin www.cnblogs.com/bruze/p/11354946.html