# Locking the home page

## Option 1 - locking your entire store

Locksmith gives you the ability to lock your entire store, which you can select when creating a new lock:

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

Once the lock for your entire store is created, you'll see an option labelled *"*&#x41;llow access to the home page"**. It is unchecked by default** - **leave it that way to ensure that the home page is locked.**

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

## Option 2 - create a lock that ONLY covers the home page

This can be done using a simple custom lock. Choose "Start a Liquid lock" from the list when creating a new lock:

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

For the "Liquid condition", use `template == "index"`

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

Press "Create lock" to finish the lock creation. Make sure to add your keys on the following page like normal.


---

# Agent Instructions: 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:

```
GET https://www.locksmith.guide/tutorials/more/locking-the-home-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
