IP address restrictions
- Tier: Free, Premium, Ultimate
- Offering: GitLab Self-Managed, GitLab Dedicated
IP address restrictions help prevent malicious users hiding their activities behind multiple IP addresses.
GitLab maintains a list of the unique IP addresses used by a user to make requests over a specified period. When the
specified limit is reached, any requests made by the user from a new IP address are rejected with a 403 Forbidden
error.
IP addresses are cleared from the list when no further requests have been made by the user from the IP address in the specified time period.
When a runner runs a CI/CD job as a particular user, the runner IP address is also stored against the user’s list of unique IP addresses. Therefore, the IP addresses per user limit should take into account the number of configured active runners.
Configure IP address restrictions
- On the left sidebar, at the bottom, select Admin.
- Select Settings > Reporting.
- Expand Spam and Anti-bot Protection.
- Update the IP address restrictions settings:
- Select the Limit sign in from multiple IP addresses checkbox to enable IP address restrictions.
- Enter a number in the IP addresses per user field, greater than or equal to
1
. This number specifies the maximum number of unique IP addresses a user can access GitLab from in the specified time period before requests from a new IP address are rejected. - Enter a number in the IP address expiration time field, greater than or equal to
0
. This number specifies the time in seconds an IP address counts towards the limit for a user, taken from the time the last request was made.
- Select Save changes.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support