CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011

    replace DNS error page

    I have a problem and I need some help.
    I work on a BHO and I have to replace the IE's DNS error page with my custom page. Does anyone know how to do it?

  2. #2
    Join Date
    Apr 2000
    Belgium (Europe)

    Re: replace DNS error page

    Not sure which error you refer to. but it's probably one of the special "about:" URI's

    Look at the URL bar and take note of the URI.

    In your BHO, when you see an attempt to browse to that URI, simply cancel and provide your own contents (or allow the navigate and then modify the page as desired).

    It's also possible you're seeing a page from a remote site (or your router/proxy software) in response to trying to accessing a certain URL. If this is the case you probably can't do much about it other than parsing the contents to see what it is and take steps post navigate.

  3. #3
    Join Date
    Feb 2011

    Re: replace DNS error page

    When you type a dns that doesn't exists IE shows "Internet Explorer cannot display the webpage". I did like you said but I cannot catch refresh event from BHO.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.