Block url in f5

Karen Arul 1 Reputation point
2022-01-28T21:02:24.103+00:00

I am working on sharepoint 2019 farm for internet site

2 wfe with dc
2 app with search
2 database

Which sharepoint urls should be blocked in f5 without affecting sharepoint to work properly, the reason is to avoid any attack or login access to site over internet, I just need annonmys user to browse my site with blocking any way to request username or password.

Microsoft 365 and Office SharePoint Server For business
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Matteo Zamori 91 Reputation points
    2022-02-15T11:24:51.127+00:00

    Hi @Karen Arul ,

    I would go for a Web Application extension's approach.

    You create your internal Web Application accepting NTLM and later on you extend the Web Application for Anonymous access only.
    You will then expose only the extended url to be accessible through the F5 appliance.

    The reason is that critical SP services like Search for example requires NTLM authentication to work. If you kill completely NTLM you may have unexpected behavior and indeed some SP services won't work anymore.

    On the counter part if you expose one single Web Application having both NTLM + Anonymous enabled, then you may have security breaches as anyone could try to enforce NTLM requests to the site by using the following:

    /_windows/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F

    Concerning the F5, I imagine you have an appliance with the WAF module installed. Based on my experience you may expect TONS of "strange" requests coming through the F5. Try to enable the learning policy so you can deep dive later and decide which Url you may want to exclude (if any)

    1 person found this answer helpful.

  2. CaseyYang-MSFT 10,461 Reputation points
    2022-01-31T07:10:59.923+00:00

    Hi @Karen Arul ,

    Normally anonymous users don't need to log in when you enabled anonymous access in SharePoint 2019.

    Please follow these steps to troubleshooting if anonymous users still need to log in:

    1.Make sure you enabled Anonymous access both at the Web Application level and at the SharePoint site level.

    2.If you enabled Anonymous access at list/library level: Delete unique permissions once, stop inheriting permissions and then grant anonymous access again.

    3.In IIS, Expand your web application, Click on “Authentications”, Make sure “Anonymous Authentication” is enabled.

    4.Navigate to the IIS Virtual directory on the File system using Windows Explorer, Go to the Security tab, make sure that “Everyone” has Read privileges.

    5.Make sure the default home page is published and approved.

    For Reference: Getting Login Prompt on Anonymous Access Enabled SharePoint Sites?
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.