> For the complete documentation index, see [llms.txt](https://www.locksmith.guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.locksmith.guide/tutorials/more/making-a-product-accessible-exclusively-from-the-direct-product-link.md).

# Making a product accessible exclusively from the direct product link

This can be useful for merchants that don't need a product to be "secure", but still want to keep customers from finding the product by accident.

Locksmith also has a *secret* link feature, which is more heavily used and different than what this guide describes. The secret link feature is more secure. If you are looking for that, simply use the key condition labelled "Permit if customer arrives from the secret link" when setting up your key. If not, read on...\
\
Use the following steps:

1. Create a lock on the product in question - to do so, open Locksmith app and search for a product by name.
2. On the next page, under Keys, select the "(custom Liquid)" condition
3. Paste `template == "product"` into the "Liquid condition" box
4. Make sure the "hide this product from search results and other lists" option is checked!

<figure><img src="/files/lDzqFouTgBATRB58jZ89" alt=""><figcaption></figcaption></figure>

You're done :)

{% hint style="info" %}
**Note**: This technique can be used with other types of resources such as Pages, Collections, Articles, Blogs, etc. You'd just substitute the correct template name in your Liquid condition.
{% endhint %}

If this technique isn't working, it's possible that your theme uses a non-standard template name (other than "product"). To fix this, just update "product" in the lock to whatever your theme uses.

#### If you would like more information on Liquid key conditions, checkout the guide linked below.

{% content-ref url="/pages/ve2JX4pz2jetN297ciB6" %}
[Custom Liquid key-condition basics](/keys/more/custom-liquid-key-condition-basics.md)
{% endcontent-ref %}

## Something else not covered here?

Let us know by emailing us at: **<team@uselocksmith.com>**


---

# 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://www.locksmith.guide/tutorials/more/making-a-product-accessible-exclusively-from-the-direct-product-link.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.
