%% generate tags start %% #software-engineering %% generate tags end %% #software-engineering/authentication #software-engineering/cloudflare Cloudflare access allow you to easily add user authentication ![(1490) How to add Password Protection to your Websites using Cloudflare - YouTube](https://www.youtube.com/watch?v=OTj_7tvzWAo&t=53s&ab_channel=ilovefreesoftwareTV) you can protect more than one route. ## Logout you can logout the user at `/cdn-cgi/access/logout`. E.g. `https://yomaru.dev/cdn-cgi/access/logout` set a page rule -> redirect rule in cloudflare: ![](https://res.cloudinary.com/yomaru/image/upload/v1696746107/obsidian/f3toepj2pbgfymptr0ex.png) see more: [Session management · Cloudflare Zero Trust docs](https://developers.cloudflare.com/cloudflare-one/identity/users/session-management/#:~:text=%E2%80%8B%E2%80%8B%20Log%20out%20as,cdn%2Dcgi%2Faccess%2Flogout)