> 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/lock-behavior.md).

# Lock behavior

- [Lock behavior overview](https://docs.samita.io/b2b-lock-password-protect/lock-behavior/overview.md): What a blocked visitor actually experiences, and the six behaviors you can configure on a lock.
- [Hide price and Add to cart](https://docs.samita.io/b2b-lock-password-protect/lock-behavior/hide-price-and-add-to-cart.md): Hide a locked product or collection's price, Add to cart button, or the whole item, until a visitor passes your access rules.
- [Hide from search engines](https://docs.samita.io/b2b-lock-password-protect/lock-behavior/hide-from-search-engines.md): Keep locked pages and products out of on-site search, your sitemap, and search engine results.
- [Hide from menus](https://docs.samita.io/b2b-lock-password-protect/lock-behavior/hide-from-menus.md): Remove a protected item's links from your storefront navigation menus.
- [Redirect after access](https://docs.samita.io/b2b-lock-password-protect/lock-behavior/redirect-after-access.md): Send a visitor to a chosen URL after they pass a lock, or after a specific rule denies them.
- [Add customer tags on verification](https://docs.samita.io/b2b-lock-password-protect/lock-behavior/customer-auto-tags.md): Automatically tag a signed-in customer's account after they satisfy an access key.
- [Grant access duration](https://docs.samita.io/b2b-lock-password-protect/lock-behavior/grant-access-duration.md): Control how long a visitor stays unlocked after passing an action-based access rule before they have to verify again.


---

# 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/lock-behavior.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.
