1

Most of the times pages are named like index.php or page.aspx and you know what language was used.

But what about something like this page :

http://www.ruby-forum.com/forum/ruby

Is there anyway to find out which server side scripting language are they using?

GrowinMan
  • 4,891
  • 12
  • 41
  • 58
  • is there any specific reason why you want to know this? Or is it just curiosity? – Roger Jun 07 '12 at 20:05
  • Absolute curiosity. Each time I don't see an extension the first thing I think about is 'What language are they using to script?' – GrowinMan Jun 07 '12 at 20:28

3 Answers3

3

The backend language of a web-site is information which usually should not be available to the client. That many languages reveal themselves via their file extension is a lucky coincidence for you. So I think, the answer is: No, in general that is not possible. Although you might be able to think of a set of heuristics (e.g., in your example above, you could "guess" ruby).

gexicide
  • 38,535
  • 21
  • 92
  • 152
  • Oh ok. Is it possible to omit the extension while making aspx or php sites? – GrowinMan Jun 07 '12 at 20:29
  • of course, mod_rewrite is a possible answer here. It allows you to alias your pages. E.g., the client types your.domain/foo.html (or simply your.domain/foo) and he actually receives the result of your.domain/foo.php (cf. http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html) – gexicide Jun 07 '12 at 21:19
  • I don't understand everything quite yet but I'll make sure I do when I have the time by reading up. Thanks :) – GrowinMan Jun 08 '12 at 11:58
1

In a lot of cases you, can satisfy this curiousity from the frontend with the help of firefox extention integrated into your browser. With the click of a button you can see an ample amout of information about the website you are on and this includes the scripting language used. Wappalyzer is a browser extension that identifies software on websites

0

Server-side languages generate html. By looking at the html you will not learn what language has been used. Sometimes you find information in the head section of an html page. Sometimes you can tell from a certain path structure used in urls.

Roger
  • 1,004
  • 2
  • 12
  • 24