Remove X-Powered-By using web.configRSS

6 replies

Last post Aug 19, 2019 09:25 PM by KWMcCann

  • Remove X-Powered-By using web.config

    May 23, 2019 06:14 AM|kalpesh boghara|LINK

    Hello All,

    I am using revers proxy with ARR.
    I am trying to remove X-Powered-By from ARR  header.

    I have tried below code but not sure why it's not working. 

        <httpProtocol>
          <customHeaders>
            <remove name="X-Powered-By" />
          </customHeaders>
        </httpProtocol>

    Please help me how I remove these "X-Powered-By".

    Let me know any other information is required.

  • Re: Remove X-Powered-By using web.config

    May 24, 2019 01:41 AM|Jalpa Panchal|LINK

    Hi kalpesh boghara,

    To remove X-Powered-By header follow below steps:

    Open IIS Server Manager and select the site or server name from which you want to remove the header.

    Select the HTTP Response Headers feature.

    Remove the X-Powered-By header if it exists.

    Clear browser cache and history and try to access the site.

    IIS setting:

    IIS 7.5

    Web.config file:

    Browser result:

    Regards,

    Jalpa

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: Remove X-Powered-By using web.config

    May 27, 2019 10:53 AM|kalpesh boghara|LINK

    Hello Jalps,

    I have already tried same think please refer my question with image and web.config file code.

    But not get any result.

    Let me know if any other solution.

    :(  Thanks for your reply but not get any luck. 

  • Re: Remove X-Powered-By using web.config

    May 28, 2019 01:11 AM|Jalpa Panchal|LINK

    Could you share your snapshot of the response header?

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: Remove X-Powered-By using web.config

    Jun 06, 2019 12:02 PM|kalpesh boghara|LINK

    Hello Jalpa,

    Jalpa Panchal

    Could you share your snapshot of the response header?


    It's same as my question nothing change.
    I have try with privet browser or change my browser as well.

    Please let me know any other way to remove that.
    Thanks

  • Re: Remove X-Powered-By using web.config

    Jun 10, 2019 09:02 AM|Jalpa Panchal|LINK

    Did you remove header at server level or site level?

    and also share the server level response header and site level iis response header snapshot.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: Remove X-Powered-By using web.config

    Aug 19, 2019 09:25 PM|KWMcCann|LINK

    Did you try an ARR outbound rule matching a X-powered-By server variable?