# Security Redirect

Security Redirect is reusable that is used to centralize access to your app pages. It contains only workflows used to redirect users to other pages based on conditional rules.

A logged out user or a regular user visiting the admin page? The Security Redirect has a workflow to navigate them away from the page.

&#x20;We put that reusable conveniently in the [Source Popup](https://docs.openbuild.io/working-with-the-framework/data-and-workflows/source-popup) in every page to keep it from cluttering.

{% hint style="warning" %}
Remember that just redirecting the user from the page that he should not access is not enough to make your app secure. Make sure to always set the privacy rules on data that is sensitive. Check if your app is secure via [checkSo](https://check.tinkso.com).
{% endhint %}

The easiest way to set up redirect workflows in complex apps is by separating the workflows by pages and then putting extra conditional logic onto the actions themselves.

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FYi9Ivdee6aSWkzYmdwV7%2FScreenshot%202022-09-23%20at%2016.28.44.png?alt=media&#x26;token=42c2d921-4a8a-44c7-8aaf-39c9eea3beda" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2F0yFftghuWavZN1yXSfZa%2FScreenshot%202022-09-23%20at%2016.31.02.png?alt=media&#x26;token=f95f5e1f-02fb-445c-818a-ca98178ac2d6" alt=""><figcaption><p>Example of redirect the user if he is not an Admin user</p></figcaption></figure>


---

# 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://docs.openbuild.io/framework-elements/security-redirect.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.
