GitLab Community Edition : how to restrict access on Public Projects?

Hello,

We have currently GitLab Community Edition [14.9.2] setup on virtual machine. We have several projects on this server. This server hosted public projects that are available from anybody. How to restrict access on Public Projects please ? (restriction by IP Address ?)

Thanks a lot for your help at this topic

Best Regards

Hi,

Login as your admin user, then click Menu β†’ Admin β†’ Settings β†’ General β†’ Visibility and access controls. Then scroll down a bit and you will see something like this:

with this option set like this, means that you need to have a valid username/login to be able to login to that particular gitlab instance. Then that means public projects will not be available to see for anonymous, eg: not logged in users.

You may also wish to set these options to private or internal as well if that isn’t enough for you:

1 Like