How to Hide Response header details [Resolved]

Posted by perfectchourasia-9163 under ASP.NET on 12/7/2011 | Points: 10 | Views : 2734 | Status : [Member] | Replies : 4
Response Headers - http://www.fortunehotels.in/


Date: Wed, 07 Dec 2011 07:05:30 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 63248

200 OK


I want to hide the above details mainly --
X-AspNet-Version: 2.0.50727
Server: Microsoft-IIS/6.0

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/



Responses

Posted by: perfectchourasia-9163 on: 12/7/2011 [Member] Starter | Points: 25

Up
0
Down

Resolved
Response.Headers.Set("Server","Sandeep chourasia");

By writting this code in global.aspx i have custom the server header

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

perfectchourasia-9163, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 12/7/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

Check this http://www.britishdeveloper.co.uk/2010/08/hide-http-headers-server-x-powered-by.html


Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

perfectchourasia-9163, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 12/7/2011 [Member] Starter | Points: 25

Up
0
Down
thenks for reply but i m not able to hide server info can you please tell me step by step

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

perfectchourasia-9163, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 12/7/2011 [Member] Starter | Points: 25

Up
0
Down
Server Error in '/' Application.
Could not load file or assembly 'HttpModules' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'HttpModules' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.




ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

perfectchourasia-9163, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response