<ul>
<li>Using Craft 3 RC14 </li>
<li>System status is set to off</li>
</ul>

<p>Wondering if anyone has approached the same problem as I did. If there is a way to use <strong>element api</strong> while the system status is disabled?</p>

<p>I have tried to check the app's status within the element api using <code>\Craft::$app-&gt;isSystemOn</code> and it does display <strong>true</strong> when the status is enabled, on the other hand it doesn't even go to the element.api and returns 503.</p>

<p>I have to keep the status disabled as during the development I don't want any search engine to crawl the content of the website before the actual launch date.</p>

<p>Is there way to set the status on the api end or any other solution that would make my api active while the website is disabled?</p>

CC BY-SA 3.0
2018-03-09T23:08:45.553Z
Any reason you can't just take Craft's system status out of the picture and setup basic HTTP authorization to block crawlers? https://httpd.apache.org/docs/current/howto/auth.html
Brad Bell
CC BY-SA 4.0
2018-08-01T13:27:11.207Z
Have you found any solution to this?
spassas
<craft3><plugin-elementapi><system-status>
Craft 3 Element Api when system status is disabled
# Craft 3 Element Api when system status is disabled

(Asked by: username_0 on 2018-03-09)

* Using Craft 3 RC14
* System status is set to off

Wondering if anyone has approached the same problem as I did. If there is a way to use **element api** while the system status is disabled?

I have tried to check the app's status within the element api using `\Craft::$app->isSystemOn` and it does display **true** when the status is enabled, on the other hand it doesn't even go to the element.api and returns 503.

I have to keep the status disabled as during the development I don't want any search engine to crawl the content of the website before the actual launch date.

Is there way to set the status on the api end or any other solution that would make my api active while the website is disabled?

**Tags:** craft3, plugin-elementapi, system-status

> **Comments:**
> **username_1**: Any reason you can't just take Craft's system status out of the picture and setup basic HTTP authorization to block crawlers? https://httpd.apache.org/docs/current/howto/auth.html  
> **username_2**: Have you found any solution to this?  

---

## 0 answers

