Solved

remove info from response headers

Posted on 2014-04-25
3
329 Views
Last Modified: 2014-06-09
hi

We have a citrix webpage on IIS that uses .net Framework 2.0.
we would like to remove the default response header info, when a user hits a 404 page.
"
Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /auth/dd.aspx


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474 

Open in new window

"

Please help with any advice.

Thanks
Rezart
0
Comment
Question by:sblanken
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40024471
Are you talking about using a custom page for 404 errors?
0
 
LVL 61

Accepted Solution

by:
btan earned 500 total points
ID: 40024496
Remove the error can be done via appcmd as describe below
http://technet.microsoft.com/en-us/library/cc771015(v=ws.10).aspx

Likewise, you can customise the return error as below
http://technet.microsoft.com/en-us/library/cc753103(v=ws.10).aspx

Overall, to prevent fingerprinting attempt, suggest you consider hardening your IIS server using the IISlockdown and URLscan tools. E.g. In your URLscan.ini file, prevent IIS from including the HTTP header that identifies your Web server as "IIS" by setting the parameter RemoveServerHeader to a value of one (1).
http://www.iis.net/learn/extensions/working-with-urlscan/urlscan-3-reference

As in the URLScan FAQ, UrlScan 3.1 and UrlScan 3.0 are supported on IIS 5.1, IIS 6.0, and IIS 7.0 and above. Also good to note the below on the IIS 7 inherent filtering module support
http://www.iis.net/learn/extensions/working-with-urlscan/urlscan-faq

Question: How is this version different from the request filtering module in IIS 7.0 and above?

Answer: The request filtering module that shipped with Windows Server 2008 RTM does not have the ability to filter based on query strings like UrlScan v3.1 does. Request Filtering module also does not allow you to specify rules that apply to multiple parts of an HTTP request in one entity. However all the changes in UrlScan v3.x will be incorporated into the request filtering module for an update release in the near future.
URLSCAN setup - http://www.iis.net/learn/extensions/working-with-urlscan/urlscan-setup
0
 

Author Closing Comment

by:sblanken
ID: 40123439
we solved this internally, the links provided were sort of helpful.

thank you
Rezart
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now