Solved

remove info from response headers

Posted on 2014-04-25
3
348 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 63

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

830 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