Hub documentation

Network Security

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Network Security

This feature is part of the Enterprise Plus plan.

Define your organization IP Ranges

You can list the IP addresses of your organization’s outbound traffic to apply for higher rate limits and/or to enforce authenticated access to Hugging Face from your corporate network. The outbound IP address ranges are defined in CIDR format. For example, 52.219.168.0/24 or 2600:1f69:7400::/40.

You can set multiple ranges, one per line.

Screenshot of the Organization IP Ranges field.

Higher Hub Rate Limits

Most of the actions on the Hub have limits; for example, users are limited to creating a certain number of repositories per day. Enterprise Plus automatically gives your users the highest rate limits possible for every action.

Additionally, once your IP ranges are set, enabling the “Higher Hub Rate Limits” option allows your organization to benefit from the highest HTTP rate limits on the Hub API, unlocking large volumes of model or dataset downloads.

For more information about rate limits, see the Hub Rate limits documentation.

Screenshot of the toggle to enable High rate-limits.

Restrict organization access to your IP ranges only

This option restricts access to your organization’s resources to only those coming from your defined IP ranges. No one can access your organization resources outside your IP ranges. The rules also apply to access tokens. When enabled, this option unlocks additional nested security settings below.

Require login for users in your IP ranges

When this option is enabled, anyone visiting Hugging Face from your corporate network must be logged in and belong to your organization (requires a manual verification when IP ranges have changed). If enabled, you can optionally define a content access policy.

All public pages will show the following message if access is unauthenticated:

Screenshot of restricted pages on the Hub.

Content Access Policy

Define a fine-grained Content Access Policy by blocking certain sections of the Hugging Face Hub.

For example, you can block your organization’s members from accessing Spaces by adding /spaces/* to the blocked URLs. When users of your organization navigate to a page that matches the URL pattern, they’ll be presented the following page:

Screenshot of blocked pages on the Hub.

To define Blocked URLs, enter URL patterns, without the domain name, one per line:

Screenshot of blocked pages on the Hub.

The Allowed URLs field, enables you to define some exception to the blocking rules, especially. For example by allowing a specific URL within the Blocked URLs pattern, ie /spaces/meta-llama/*

Update on GitHub