Sometimes administrators need to identify server details such as the web server type, PHP version, or server configuration without having direct login access. This information can often be retrieved using simple command-line tools.
One effective method is using the wget command to fetch HTTP response headers from a website.
Using wget to Retrieve Server Details
You can collect server information by running the following command:
wget -S --spider domainname.com This command checks the website without downloading its content and displays HTTP header information returned by the server.
Example Command
[root@server ~]# wget -S --spider manoramaonline.com Example output:
HTTP/1.1 200 OK
Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Tue, 10 Aug 2010 11:16:48 GMT
Connection: close Understanding the Output
The response headers reveal important server details:
- Server – Shows the web server software (e.g., Microsoft IIS, Apache, Nginx)
- X-Powered-By – Indicates backend technology such as ASP.NET or PHP
- Content-Type – Type of content served
- Status Code (200 OK) – Confirms the site is accessible
This method helps administrators quickly gather major server information without SSH or control panel access.
When Is This Useful?
- Server technology identification
- Security auditing
- Website troubleshooting
- Competitor technology analysis
- Quick infrastructure verification
Conclusion
Using the wget --spider command is a simple and effective way to obtain key server information remotely. It allows administrators to analyze server configurations without logging into the system.
If you require help, contact SupportPRO Server Admin

