Can SharePoint Online blocks access and redirect traffic to a specific domain based on the network location

kekkou 40 Reputation points
2024-12-09T04:17:28.4166667+00:00

Hi,

After searching

Does SharePoint Online support that,

When a SharePoint Online (https://contoso.sharepoint.com) is configured to be only accessible from IP (assumed 1.2.3.4)

  • If a user from 1.1.1.1 (assumed) tries to access to https://contoso.sharepoint.com, including all sub-path it will be redirected to https://www.contoso.com, carrying all original query parameters (i.e. URL rewriting works like https://nginx.org/en/docs/http/ngx_http_core_module.html#location)
  • If a user from 1.2.3.4 (assumed) tries to access to https://contoso.sharepoint.com, it is allowed to direct access without any traffic redirection.

Or is there some approaches to implement this function.

Thanks?

 

Microsoft 365 and Office | SharePoint | Development
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2024-12-10T01:52:36.66+00:00

    Hi @kekkou,

    Hope everything is going well.

    First question about whether you redirect can carry the test of redirection:

    In SharePoint Online, when you block access to a site and set a NoAccessRedirectUrl, the original request parameters are not carried over to the new URL. Redirection is the default behavior that SharePoint is designed for, and we can't interfere with this redirection.

    Secondly about allowed network IP addresses not being redirected:

    According to the information you provided and the research I have done, I may understand that you seem to want non-allowed IP addresses to be redirected to other domain when accessing SharePoint and allowed IP addresses not to be redirected when accessing it. If there is anything wrong, please correct me.

    However, SharePoint only supports settings related to access based on network addresses without redirection.

    Based on the results of our internal testing, -NoAccessRedirectUrl does set the redirect address for no access, but the -LockState NoAccess we set before using it will disable all users from accessing the site, including administrators.

    If you position to redirect traffic to a specific domain, it may be advisable to use some network-level tools such as DNS or a firewall.

    Since we lack information about these network level settings, if you have questions about this you can ask in the relevant forums. Please kindly notice that I am always on standby to support you. If there is anything else I can do for you, please do not hesitate to reach me.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. It will be beneficial to more community members reading here. Your contribution will be highly appreciated.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.