Hi ,
How to implement Server Finger Printing and Framework Disclosure in asp.net with C#
Regards,
Pratik
Hi ,
How to implement Server Finger Printing and Framework Disclosure in asp.net with C#
Regards,
Pratik
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ajay KumarRank #56 · 29K reputationPosted Sep 22, 2023, 12:42 AM EDT
Server Fingerprinting
protected void Page_Load(object sender, EventArgs e) { // Get the Server header from the response string serverHeader = Response.Headers["Server"]; if (!string.IsNullOrEmpty(serverHeader)) { // Print or log the server information Response.Write("Server: " + serverHeader); } }Framework Disclosure
protected void Page_Load(object sender, EventArgs e) { // Get the X-Powered-By header from the response string poweredByHeader = Response.Headers["X-Powered-By"]; if (!string.IsNullOrEmpty(poweredByHeader)) { // Print or log the framework information Response.Write("Framework: " + poweredByHeader); } }Sachin SinghRank #66 · 26.2K reputationPosted Oct 3, 2023, 7:45 AM EDT
What do you mean by implement, we basically hide the server details and sensitive headers from the website, for that follow this
on web config