> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/b2b-lock-password-protect/content-to-lock/overview/vendor.md).

# Vendor

Lock every product from a specific vendor.

Choose **Vendor** when you want to lock every product from a specific supplier or brand in one lock — for example, a brand you only sell to approved retail partners, without having to tag or select each product individually.

## Create the lock

1. Open **Locks** in the app's navigation.
2. Click **Create lock**.
3. Give the lock a descriptive name, for example "Brand X — approved retailers only."
4. On the **Lock setup** tab, in the content picker, choose **Products**, then select **Vendor**.

<figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-cfa4e161dcc715c76997c4285b0b149bbefdcf9c%2Fscreenshot-locks-content-picker-vendor.png?alt=media" alt="The content picker with Products selected and the Vendor option chosen."><figcaption><p>Choose Vendor to lock every product from a specific supplier or brand.</p></figcaption></figure>

5. Select the vendor you want this lock to cover. Every product assigned to that vendor — now and in the future — is covered by this lock.

<figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-a37f8ff89ec8254470eff8f0981a50112ac43424%2Fscreenshot-locks-vendor-picker.png?alt=media" alt="The vendor picker for a Products lock targeting a specific vendor."><figcaption><p>Select the vendor whose products this lock should cover.</p></figcaption></figure>

{% hint style="info" %}
Targeting by vendor may require a paid plan depending on your current plan.
{% endhint %}

6. Click the **Unlock rules** tab to continue.

## Add an access rule

7. Add at least one rule. See [Access rules overview](/b2b-lock-password-protect/access-rules/overview.md) for the full catalogue.
8. Add every required condition to the access key. All conditions must be satisfied. See [Combining rules](/b2b-lock-password-protect/access-rules/combining-rules.md).

## Choose a lock behavior

On the same **Unlock rules** tab, the right-hand sidebar has a **Blocked visitor behavior** panel — configure it alongside your rule:

9. Review [Lock behavior overview](/b2b-lock-password-protect/lock-behavior/overview.md) — [Hide price and Add to cart](/b2b-lock-password-protect/lock-behavior/hide-price-and-add-to-cart.md) is a common choice, or you can fully hide the vendor's products from listings and search.

## Save

10. Click **Save**. The lock takes effect on your storefront as soon as the app embed is enabled.

## Related docs

* [Products and variants](/b2b-lock-password-protect/content-to-lock/overview.md)
* [Product tags](/b2b-lock-password-protect/content-to-lock/overview/product-tags.md)
* [Access rules overview](/b2b-lock-password-protect/access-rules/overview.md)
* [Manage locks](/b2b-lock-password-protect/locks/manage-locks.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.samita.io/b2b-lock-password-protect/content-to-lock/overview/vendor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
