How do you determine a site is using PHP or ASP?

Discussion in 'Programming' started by UnEmployedAfterSchool, Jun 19, 2006.

  1. #1
    Can someone tell me how one can determine of a site is running PHP or ASP?
    I can determine if it has .php or .asp, but some cases these are hidden.
     
    UnEmployedAfterSchool, Jun 19, 2006 IP
  2. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #2
    You can tell, most times, if you look at the HTTP response headers. For example my fourshapes domain shows this:

    Server: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a

    and has the extra header:

    X-Powered-By: PHP/4.4.2

    Also my online banking account has: Server: Microsoft-IIS/5.0

    So it's most likely going to be asp or .net
     
    AdamSee, Jun 19, 2006 IP