# Differentiate live website and local website

{% hint style="danger" %}
This should be used only for **very specific features**. The local website is supposed to be an accurate preview for the client of what will be published and visible on the live website. So you should avoid having different behavior on the preview website and the live website
{% endhint %}

Inside the page, you can access the javascript variable `window.galaxyInfo.live_website` that will be `true` on a published website, and `false` on the local website

```javascript
console.log(window.galaxyInfo.live_website)
```
