ipsecurity for binding instead of locationRSS

2 replies

Last post Aug 29, 2019 03:04 AM by jtsr

  • ipsecurity for binding instead of location

    Jul 11, 2019 07:33 AM|jtsr|LINK

    I have a site in IIS 7.5 that uses multiple bindings to display content on separate domains.

    I want to be able to use ipsecurity to restrict access to one of these domains/bindings.

    Normally, I could use the location element and path attribute in web.config, however the path attribute takes path info only and not domain info. If it could handle regex that would also work my understanding is that it can’t.

    Is what I’m trying to do possible with IIS ipsecurity or will I need a different approach?
  • Re: ipsecurity for binding instead of location

    Jul 11, 2019 07:23 PM|lextm|LINK

    jtsr

    Is what I’m trying to do possible with IIS ipsecurity or will I need a different approach?

    Impossible.

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: ipsecurity for binding instead of location

    Aug 29, 2019 03:04 AM|jtsr|LINK

    So is there any way in IIS that will allow me to redirect requests for a particular domain that is setup as a binding, to certain IP addresses?

    I've tried the URL Rewrite using HTTP_HOST, along with REMOTE_ADDR/HTTP_X_Forwarded_For and this does not work at all.