The method to determine which language a website is developed in

23:13:20, July 29, 2017 Yidian Yidi two thousand nine hundred and nineteen

There are many kinds of web page development languages. Sometimes, out of some need or curiosity, I want to see what language a website is written in. Is there any method or skill?

Generally speaking, for many websites that do not use static and pseudo static technologies, we can directly view the suffixes of website pages, such as:

Server Side Includes technology, extension name is. shtml or. html or. htm

PHP technology, with the extension of. php

JSP technology, extension named. jsp or. jsf (JSF technology is the extension of JSP technology)

ASP.NET technology, extension name is. aspx (x stands for extension)

ASP technology, expanded as. asp

ColdFusion technology, with the extension of. cfc

For larger websites, resources are generally used to turn to functions (like the name defined by web.xml in JSP, which turns HOME to home.jsp, thus hiding the extension name). Or use Apache to have a URL Rewriting module. If the extension name of a PHP website is changed, the URL Rewriting is commonly used. You can change the extension name of. php to any name. At this time, we still have five methods to judge:

Method (1): Check the development open platform of the website. For example, Google has a Google Code, which provides various Google Search Engine APIs, as well as Google AJAX. The APIs provided by Google are all JAVA (no PHP, ASP, etc.), so we can judge that Google must be JSP.

Another example: go to Wikipedia, when you click on some buttons to submit information, the status bar (below) of IE will immediately show the extension of. php. The reason why you can't see the. php page on the address bar is that Wikipedia will turn to another. html page after you submit your information, instead of displaying the. php page directly.

Method (2): Learn JSP, PHP and other related technologies, you can understand the characteristics of websites developed with these technologies, and you can judge according to the structure. For example: Renren. com, when they are recruiting developers, they just need to get back JSP, Struts (one of the structures of JSP MVC). Moreover, most of the games developed on Renren's open platform are written in JSP, so it can be concluded that Renren uses JSP (in fact, the school extension. do is a typical JSP Struts). Another example: Baidu. From its post bar, the submission mode, and the fact that most of Baidu's extension names are hidden (PHP websites often use the functions in Apache to hide extension names), Baidu uses PHP.

Method (3): You can try to find the recruitment information of the website. From the recruitment requirements, you can see what language the background programmer of the website needs to know. Renren's own recruitment page is a good example.

Method (4): Check the COOKIE characteristics of the website. Open the website and enter javascript: alert (document. cookie) in the address bar; Then press Enter, you can see that JSESSIONID=* * * * *, which is written by JSP//PHP is SESSIONID=, The. net website will not be in either case.

Method (5): Add/index.php or/index.asp/or index.jsp or/index.aspx after the domain name, which can be opened indicates the language. For example, Baidu's http://www.baidu.com/index.php Baidu is the php, Renren is the jsp, and Taobao is also the php.

Finally, although there are many methods, it cannot be ruled out that some websites cannot judge the development language by using all the above methods. Some websites use several languages at the same time, while some extensions can be modified:

For example,. php can be disguised as. html. After using rewrite and reverse proxy, the actual resource file name may also be hidden. For websites developed in python and ruby, there is no agreed extension. You can use firebug or chrome developer tools to view the response headers of the web page:

Response Headers
HTTP/1.1 200 OK 
Date: Thu, 29 Nov 2012 01:08:16 GMT 
Server: Apache/2.2.15 (CentOS) 
X-Powered-By: PHP/5.2.17 
Connection: close 
Transfer-Encoding: chunked 
Content-Type: text/html; charset=UTF-8

Excellent, really powerful! Well, we must encourage~

Reward zero
account number: mxy310@163.com [Copy]
account number: seventy-seven million nine hundred and forty thousand one hundred and forty [Copy]