开发者

How to find out a website is created with such and such language?

For Eg..(.HTML gives an idea of that website developed with HTML, .aspx gives an idea of that website developed with ASP.NET and so on...). But, if exten开发者_如何学JAVAsion is hidden, then can we able to find out in any other way? Is it possible to know ?..Thanks..


In theory nothing in the HTTP response reveals for sure which language was used to generate the content. It could even be the case that the content of an url ending with .php is generated by, say, JSP for instance.

Perhaps there are some funny hacks out there, that could reveal it in some cases. I suppose for instance that if the URL points to some directory (ends with ".com" or "something/") you could try appending index.php, index.asp, or whatever to see what works.


Usually by error codes, and behavior. However, I have to say that a webpage these days is not just 'one' technology, but a soup. Example, the back-end can be a database (MySQL, Postgre, MS SQL), which is usually accessed through SQL statements fed to an adapter/connector, but could also be taken care of by a framework (RubyOnRails, Zend, etc) using ActiveRecord (ORM). The server-side part is usually 'discovered' by extension (php/asp), but in RubyOnRails extensions are no longer part of the site because of most MVC frameworks allow friendly urls (which are good for SEO). Then there is the CSS for the page layout and JavaScript for dynamic features such as AJAX. Unless you have access to the source code, the only other way to figure it out is to try banner grabbing/tampering. Which means like requesting pages with false data and try to get some sort of error to figure out what is running server side.

Example: if the error handling is not taken care of by the developer, you try an invalid id number as url parameter. On a Ruby-on-Rails app, you'll get the standard exception screen. On CodeIgniter, you get a similar page, it would look different because of its templates.

www.mysite.com/myproducts/29292020929912919292992222222222992929299922012000101019292


Search the website for a link that says "Contact us." Use email and phone information contained to contact the people who own the website. Ask them.

If they do not know, go to whois.net or a similar service. Enter the domain address. Jot down the information about who owns and manages the website. Copy down their phone numbers and email addresses. Contact them and ask.

In all of these, be polite and complimentary. If they think you admire their work, they might reveal some details.


Even if the extension is .aspx, one cannot guarantee that it is built on ASP.NET and the same is with .php, .asp etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜