<p>Your templates will be private if they are contained in a folder prefixed with a "_"... So just make a folder like that, and put everything else inside of it:</p>

<pre><code>/craft/templates/_everything/myprivatefile.html
</code></pre>

CC BY-SA 3.0
2015-01-19T07:32:18.163Z
Ahh nice, didn't know this also works for folders :) Thank you!
Sidney Widmer
CC BY-SA 3.0
2015-01-18T19:03:46.750Z
2015-01-18T19:03:46.750Z
Lindsey D
<p>Is there a way to make all templates automatically private? Or do I really have to put an _ before every single one?</p>

<routing><templating>
All templates automatically private
# All templates automatically private

(Asked by: username_0 on 2015-01-18)

Is there a way to make all templates automatically private? Or do I really have to put an \_ before every single one?

**Tags:** routing, templating


---

## 1 answers

### Answer by username_1 on 2015-01-18. Score: 5 | Accepted answer

Your templates will be private if they are contained in a folder prefixed with a "_"... So just make a folder like that, and put everything else inside of it:
/craft/templates/_everything/myprivatefile.html

> **Comments:**
> **username_0**: Ahh nice, didn't know this also works for folders :) Thank you!  

---

