Customize Rules: Host Header did not match URL

1 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Feb 2014

    Posted 24 Feb 2014 Link to this post

    Followed answer from

    The Link is for "fiddler: how to disable overwrite Header Host"

    Q: When using Fiddler, it pops up an alert dialog.

    Fiddler has detected a protocol violation in session #14.

    The Request's Host header did not match the URL's host component.

    URL Host: Header Host:

    And it shows that Fiddler changed HTTP Header's host to "", is there any way to diable Fiddler changing it?

    You can do this with rules.

    Go into Customize rules, and find the function: OnBeforeRequest(oSession: Session)

    Then add the following as the last line of that function:

    if (oSession.HostnameIs("")) { = ""; }

    I had this same issue with auto-updates from Avira Servers (Anti Virus).

    As the above suggests I added     
    if (oSession.HostnameIs("")) { = "";}

    In order to find the appropriate host address(es) use cmd.exe and enter nslookup
Back to Top