# Enable Authentication (Login/Logout)

This page will help you to enable Authentication for your websites built on [Siteoly](https://siteoly.com). Here is the sample [Google Sheet Link](https://docs.google.com/spreadsheets/d/1ncAiLPNGXdzGSn_XNtXYL4U_9lmus2NY6olzjDVATog/edit#gid=1366747567) for reference.

{% hint style="info" %}
By enabling this feature, only a given set of users (with username/password) can only login to the site and access the site and any internal pages (detailed pages).
{% endhint %}

{% hint style="warning" %}
This feature is only available in Pro, Pro Plus and Enterprise plans.&#x20;
{% endhint %}

#### Please follow below steps to enable Authentication and enable secure access to your websites and all of its internal pages.

1. Goto your Google spreadsheet
2. Goto 'DONT EDIT' sheet. In Column A, if you see "Enable Authentication", ignore Step 3 and Step 4 and move to Step 5.
3. Add a new cell in Column A as - "Enable Authentication" (without quotes)&#x20;
4. ![](/files/LEm8bpzwiD1VFqlEXDt1)
5. Now goto "OtherSettings" sheet and you should see a row as "Enable Authentication"&#x20;
6. Enter the value you want to set in the cell next to "Enable Authentication".&#x20;

&#x20;      **Enable Authentication can take 3 values.**

* [x] Enable Authentication = "No" -> This means Authentication is disabled to whole site and the site is open for all.
* [x] Enable Authentication = "Full Site" -> This means Authentication is enabled for the full site including home page and detailed pages
* [x] Enable Authentication = "Detailed Pages Only" -> This means Authentication is enabled to only detailed pages but not to home page.
* [x] If 'Enable Authentication' is empty or the row doesn't exist -> This means Authentication is disabled to whole site and the site is open for all

![](/files/bEADvowl9O6eeKiUR3QT)

![](/files/dcAXQtJHvNZB99yi24oo)

**Next Steps on how to create Usernames and password:**

1. Create a new additional sheet (in the same Google sheet link) with name 'Auth' and add below columns.
2. &#x20;Column A: Username

   &#x20;Column B: Password

   &#x20;Column C: Display Name
3.

![](/files/7UkCP2RicMM5xRjlVECs)

#### **Here is the sample** [**Google Sheet Link**](https://docs.google.com/spreadsheets/d/1ncAiLPNGXdzGSn_XNtXYL4U_9lmus2NY6olzjDVATog/edit#gid=1366747567) **for reference.**

### How to lock only specific pages with Auth (Email/Password login):

1. Goto 'Detailed Pages' sheet and add a new column at the end as 'Extra Config' (Do this only if you don't see 'Extra Config' column in the sheet. **Make sure this is Column H**. See [this 'Detailed Pages' sheet for reference](https://docs.google.com/spreadsheets/d/15OhyVXqKuYIeDtScIllF2ZU29zM3qm9lbUbQKkk-vws/edit#gid=888002452) to make sure you have all required columns.&#x20;
2. For the pages you want to lock, update the 'Extra Config' column as \[Locked: Yes]

* [x] If Extra Config has \[Locked: Yes] -> The page will be locked.
* [x] If Extra Config has \[Locked: No] -> The page will be open for everyone.
* [x] If Extra Config has no value -> The page will be open for everyone unless you lock the full site from 'Other Settings' sheet.&#x20;

1. By default all the pages will be open for everyone unless you lock the page or lock the full site from 'Other Settings' sheet.

![](/files/924t931ylIdtbkqsXhX8)

### Testing

1. Once all the above steps are done, **use 'live test' link to pull latest changes**
2. Goto your website and see. If you set 'Enable Authentication' to 'Full Site' or 'Detailed Pages Only' in the 'OtherSettings' sheet, it should show the login page. Use the Username/password set in 'Auth' sheet to login.
3. If you want to disable Auth, just set 'Enable Authentication' to 'No' in the 'OtherSettings' and use 'live test' link to re-pull the new settings.

{% hint style="info" %}
Please get in touch with support if you need any assistance in setting up Authentication for your websites built on Siteoly.
{% endhint %}

### How to logout from the website?

Once you open the website (with Authentication enabled), you will see a little chevron button on the right side of the website. Click on the 'Logout' button to logout from LoggedIn session. (See below).

![](/files/hT64VEnmWqNqTUV1z0jG)![](/files/nS5Azah7WQZtzA5SLmt5)


---

# 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://help.siteoly.com/advanced/enable-authentication-login-logout.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.
