<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Octauthent on Medium]]></title>
        <description><![CDATA[Stories by Octauthent on Medium]]></description>
        <link>https://medium.com/@octauthent?source=rss-8c69f5718165------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qw7h6H9uIuuQqTj5k9Zdag.png</url>
            <title>Stories by Octauthent on Medium</title>
            <link>https://medium.com/@octauthent?source=rss-8c69f5718165------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 06 May 2026 19:21:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@octauthent/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[How to whitelist a specific route protected by Octauthent]]></title>
            <link>https://octauthent.medium.com/how-to-whitelist-a-specific-route-protected-by-octauthent-b3df52e90d5d?source=rss-8c69f5718165------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3df52e90d5d</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[octauthent]]></category>
            <category><![CDATA[whitelist]]></category>
            <dc:creator><![CDATA[Octauthent]]></dc:creator>
            <pubDate>Wed, 05 Mar 2025 16:06:32 GMT</pubDate>
            <atom:updated>2025-03-05T16:06:32.616Z</atom:updated>
            <content:encoded><![CDATA[<p>When you protect a route using Octauthent, you may have noticed that all child routes starting with the same pattern are also protected.</p><p>For example, if you decide to protect example.com/private* with a password, it will protect all the following routes.</p><ul><li>example.com/private</li><li>example.com/private/child</li><li>example.com/private/child/grandchild</li></ul><p>For now, Octauthent doesn’t provide a <strong>native</strong> way to protect <strong>everything</strong> except <strong>one</strong> specific route (AKA whitelisting).</p><p>In this tutorial, you’ll learn how to whitelist a route directly from your Cloudflare dashboard!</p><p>The first thing to do is to open the home page of your Cloudflare dashboard. Just click here: <a href="https://dash.cloudflare.com/">https://dash.cloudflare.com/</a></p><p>You’ll see a list of domains, click on the one that is protected by Octauthent</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*EeOoqGXwKFFMUAJI33JDaA.png" /></figure><p>In the left menu, click on “<strong>Workers Routes</strong>”.</p><p>In the right part, you’ll see a list of routes already protected by Octauthent.</p><p>Click on the “<strong>Add route</strong>” button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0q2IJjJ7_ViyKCw0DVwLFQ.png" /></figure><p>Enter the URL of the route to whitelist, and keep “None” in the worker field. <br><strong>N.B</strong>: you can use wildcards (*) if you want!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*jv0Ejad-jhjPwvR-VC2I0Q.png" /></figure><p>Congratulations! You’ll now see the whitelisted route in the routes list!</p><p>In the screenshot below, “Workers are disabled on this route” means that Octauthent will not protect it.</p><p>If you change your mind, just click on “Edit” to change or remove it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*f8T60GvHv_2CHuOIsU8Niw.png" /></figure><p>That’s it!</p><p>Whitelisting routes directly from Cloudflare is a safe way to protect everything except specific URLs</p><p><strong>N.B</strong>: You can still edit the protected routes directly from your Octauthent dashboard, it won’t affect your whitelisted routes!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3df52e90d5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to fix the TOO MANY REDIRECTS error in Cloudflare]]></title>
            <link>https://octauthent.medium.com/how-to-fix-the-too-many-redirects-error-in-cloudflare-1a76f6a5c887?source=rss-8c69f5718165------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a76f6a5c887</guid>
            <category><![CDATA[error]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[octauthent]]></category>
            <dc:creator><![CDATA[Octauthent]]></dc:creator>
            <pubDate>Mon, 22 Nov 2021 08:22:10 GMT</pubDate>
            <atom:updated>2025-02-28T14:50:55.963Z</atom:updated>
            <content:encoded><![CDATA[<p>After setting up Cloudflare on your website, it’s not impossible that you start to encounter errors that were not here before.</p><p>A common one is the ERR_TOO_MANY_REDIRECTS error. Most of the time, you just need to change a setting in your Cloudflare dashboard to fix it, here is how:</p><p>Open your <a href="https://dash.cloudflare.com/">Cloudflare dashboard</a>, click on your domain name, and open the <strong>SSL/TLS </strong>tab.</p><p>In the “SSL/TLS encryption” card, click on the “Configure” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xurxnJnDTFzvb0sSzc-eMw.png" /></figure><p>If the “Automatic SSL/TLS” encryption mode is selected, and check if it is set to either <strong>Full</strong> or <strong>Full (strict)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*leurZJC0D277JOJoie6jNQ.png" /></figure><p>If it’s not <strong>Full</strong> or <strong>Full (strict)</strong>, it’s probably the source of your problem ! Select the “Custom SSL/TLS” option below and choose the “Full” option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*0cHRj9Hxqbu7a7ooH3w5UQ.png" /></figure><p>Don’t forget to save your settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*wQl4HrnVXs7cDJPlXt6xDA.png" /></figure><p>Your problem should now be fixed</p><p>Hope it helps, have a nice day! 👍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a76f6a5c887" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to password-protect your website with Octauthent]]></title>
            <link>https://octauthent.medium.com/how-to-password-protect-your-website-with-octauthent-5e634d00faa2?source=rss-8c69f5718165------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e634d00faa2</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Octauthent]]></dc:creator>
            <pubDate>Thu, 22 Jul 2021 08:59:04 GMT</pubDate>
            <atom:updated>2021-07-26T18:01:04.850Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://octauthent.com">Octauthent</a> is a simple and free service that adds login forms to your website</p><p>Once installed on your site, <a href="https://octauthent.com">Octauthent</a> provides a dashboard where you can manage users, settings, analytics…</p><p><a href="https://octauthent.com/">Password protection made easy</a></p><p>In this tutorial, I’m going to show you how to setup <a href="https://octauthent.com">Octauthent</a> on your website. In the end, you’ll have a customized login form on all the pages you want to password-protect, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTrtxQymxjfQlYCBipebxA.png" /></figure><h3>1. Setup Cloudflare on your site</h3><p>First of all, your domain needs to be managed by Cloudflare to make it work with Octauthent.</p><p>If you already use Cloudflare on your site, it is just a matter of minutes to have your site protected, you can jump to the next step. If you don’t, I wrote a step-by-step tutorial where I explain how to install Cloudflare on your site.</p><p><a href="https://octauthent.medium.com/how-to-install-cloudflare-on-your-site-73dae6bc8814">How to install Cloudflare on your site</a></p><h3>2. Install Octauthent</h3><p>Now that all your traffic is passing through Cloudflare, let’s install Octauthent on it.</p><p>Note: For all my examples below, I’ll use my example WordPress blog, which is already working with Cloudflare: <strong>example-blog.ml</strong>.</p><p><a href="https://app.octauthent.com/login/">Sign up to Octauthent</a>, then click on the <strong>New Site</strong> button. For each step, answer the questions, and click <strong>Next.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHr_gfxuqtG7D-A7H5jtWQ.png" /></figure><p>The last step to create your site will be to choose users and passwords. In my case, I’ll start with only one user: “<em>demo</em>”, and I’ll set the password to “<em>octauthent</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EFZrXoT5ksug3wJlcdHj3A.png" /></figure><p>Once your site is created, go to the <strong>Install</strong> tab.</p><p>You will first see a tutorial to create an API Token on your Cloudflare account, just follow the instructions.</p><p>Then, you’ll be asked to choose on which Cloudflare site you want to install Octauthent.</p><p>In my case, I choose the “example-blog.ml” site, which is my example site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*CvNJQcGccDsrVEsPxFIv3Q.png" /></figure><p>Finally, configure which pages will be protected by Octauthent, and which pages will stay public.</p><p>For my example, let’s say I want to protect:</p><ul><li>All the <strong>wp-admin</strong> pages, which contain the admin part of my WordPress</li><li>A very private page where I can write private things. I created a page that can be accessed at <strong>example-blog.ml/private-page/ </strong>(in my case, there is a trailing slash, but maybe not in yours!)</li></ul><p>Here is my config:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*2Aae8_0OGlwOGi0mMVAPaA.png" /></figure><p>Click on the <strong>install</strong> button, wait a few seconds and the Octauthent login form should appear on your website in the next minute! That’s it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e634d00faa2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup Cloudflare on your site]]></title>
            <link>https://octauthent.medium.com/how-to-install-cloudflare-on-your-site-73dae6bc8814?source=rss-8c69f5718165------2</link>
            <guid isPermaLink="false">https://medium.com/p/73dae6bc8814</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Octauthent]]></dc:creator>
            <pubDate>Thu, 22 Jul 2021 08:47:02 GMT</pubDate>
            <atom:updated>2021-11-22T08:30:00.042Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloudflare is a company that provides web performance and security services, and is <strong>completely free</strong> for most users</p><p>To make it very simple, imagine that instead of linking your domain name to your website, you link your domain to a third-party service (in our case, Cloudflare), which then redirects all your traffic to your website.</p><p>Not only it makes your website faster (because the Cloudflare network is available on hundreds of locations all around the globe), but it can also protect your website from attackers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6a8qcjNbS7T6w45zCCVu5w.png" /></figure><p>If you’re not familiar with Cloudflare, here’s a quick list of some benefits you’ll get:</p><ul><li><strong>CDN</strong> — Cloudflare’s content delivery network helps speed up your site by serving your static content from a huge network of global servers. Cloudflare is the most popular free CDN service.</li><li><strong>SSL </strong>— if your site doesn’t already have an SSL certificate, Cloudflare can help you use HTTPS on your site to get the green padlock in visitors’ browsers</li><li><strong>DNS </strong>— Cloudflare is one of the fastest DNS providers, which can speed up your site’s time to first byte (TTFB)</li><li><strong>DDoS protection </strong>— Cloudflare can help you protect against distributed denial of service (DDoS) attacks. It can also help you just generally filter out malicious traffic</li><li><strong>Other performance benefits </strong>— Cloudflare can help you minify your code, enable Brotli compression, and implement other performance best practices</li></ul><h3>1. Cloudflare setup</h3><p>For my example, I’ll use a <strong>WordPress blog</strong>, which is already working with my custom domain name: <strong>example-blog.ml</strong>. You can follow the exact same steps with your own domain.</p><p>First, <a href="https://dash.cloudflare.com/sign-up">create a Cloudflare account</a>. As soon as you have signed up, Cloudflare will start the installation process.</p><p>Enter your website domain, then choose the free plan (on the bottom). The free plan is <strong>more than enough</strong> for most website owners, including me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vrpXULxA-a4OwEOhHI2rJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqer47xjxLa4owHYio0Tpw.png" /></figure><p>Cloudflare will now perform a quick scan to detect your current domain configuration. Accept the recommended settings (unless you know what you’re doing), and click on <strong>Continue</strong>.</p><p>In order to use the Cloudflare proxy your on a domain or a subdomain, you <strong>must </strong>have the orange cloud in the “Proxy status” column. In the screenshot below, all the traffic on <em>example-blog.ml</em> and <a href="http://www.example-blog.com"><em>www.example-blog.com</em></a> will go through the Cloudflare network</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afIn_tgcJLCL9JNYeYVxKg.png" /></figure><p>In order to finish the installation, Cloudflare will now give you clear instructions about what to do from your registrar account (where you bought your domain name!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4g9zPKVD6gw-SnCtW_K4w.png" /></figure><p>In my case, I log into my registrar account, look for the DNS / nameservers settings, and change them as I’m told. Please note that the user interface may be completely different in your case because we probably don’t have the same registrar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rr_e38Xg3QM7LtIBtG8dbg.png" /></figure><h3>2. Waiting!</h3><p>After the setup is finished, there is one last step: <strong>waiting. </strong>DNS is a complex matter and there are lots of cache levels, so be patient. You probably need to wait only a few minutes, but in some cases, it can be several hours.</p><p>To know if the installation process is finished, refresh the “Overview” tab of your Cloudflare dashboard. If you still see the setup instructions, wait a little bit more. If the installation is finished, you’ll see the following message</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j9ETjfS6IcM7E1tX3y8qWg.png" /></figure><p>Please note that even after you see this message, you may have to wait a little bit more until your visitors (including you) are actually passing through the Cloudflare network.</p><p>To confirm that Cloudflare is effectively protecting your site, go to:</p><p><a href="https://[your-domain]/cdn-cgi/trace"><strong>https://[your-domain]/cdn-cgi/trace</strong></a> using your web browser. In my example: <a href="https://example-blog.ml/cdn-cgi/trace">https://example-blog.ml/cdn-cgi/trace</a></p><ul><li>If you see a black text with your domain in the second line, you’re done!</li><li>If you see a <strong>404 Not found </strong>error, a <strong>ERR_SSL_PROTOCOL_ERROR</strong>, or any other result, wait a little bit more. DNS propagation can take up to 24 hours.</li><li>If you see a <strong>ERR_TOO_MANY_REDIRECTS, </strong>you just need to change a setting in your Cloudflare dashboard. Follow <a href="https://octauthent.medium.com/how-to-fix-the-too-many-redirects-error-in-cloudflare-1a76f6a5c887">this short guide</a> to fix it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GsyRORDDEZLyesekFSu7GA.png" /></figure><h3>3. Next steps</h3><p>Now that Cloudflare runs on your site, you can add a login form on all pages you want to protect using <a href="https://octauthent.com">Octauthent</a>.</p><p><a href="https://octauthent.com/">Password protection made easy</a></p><p>I’ve made another step-by-step tutorial to explain this part, but the steps are really basic:</p><ol><li>Sign up to <a href="https://octauthent.com/">Octauthent</a></li><li>Create a new site, choose one or multiple user/password combos</li><li>Go the <em>install</em> tab and follow the instructions</li></ol><p>Here is the tutorial if you need more details:</p><p><a href="https://octauthent.medium.com/how-to-password-protect-your-website-with-octauthent-5e634d00faa2">How to password-protect your website with Octauthent</a></p><p>Have a good day 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73dae6bc8814" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Password protect your Vercel site with Octauthent]]></title>
            <link>https://octauthent.medium.com/password-protect-your-vercel-site-with-octauthent-1f79e37b1d91?source=rss-8c69f5718165------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f79e37b1d91</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[vercel]]></category>
            <category><![CDATA[passwords]]></category>
            <dc:creator><![CDATA[Octauthent]]></dc:creator>
            <pubDate>Tue, 20 Jul 2021 23:31:04 GMT</pubDate>
            <atom:updated>2021-07-28T08:42:32.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Password protect your Vercel site with Octauthent" src="https://cdn-images-1.medium.com/max/1024/1*nvPa8kuJucqq2p_7z5HwRQ.png" /></figure><p>If you’re working on a project that is deployed on <a href="https://vercel.com">Vercel</a>, maybe you’d like to protect the access with a password.</p><p>Vercel offers this option, but you need to have the <a href="https://vercel.com/pricing">Pro plan</a> that costs 20$ per month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2oOVbfPzt3A35F6nsSlEQ.png" /></figure><p>Well, that’s not cheap, but it’s alright I guess. Wait, why is there a small info icon next to password protection? 🤔</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*PhdORvdnYdHOKDHf11d2VA.png" /></figure><p>Woah, that’s definitely not cheap, especially for a personal project. Just for comparison, <a href="https://www.netlify.com/pricing/">Netlify</a> offers password protection too, but they have it included in the Pro plan for 19$ / month and no additional costs...</p><p>If you happen to encounter this problem, don’t worry, I have a solution for you!</p><h3>Let’s protect our site with Octauthent!</h3><p><a href="https://octauthent.com">Octauthent</a> is a simple and free service that adds login forms to your website</p><p>Once installed on your site, <a href="https://octauthent.com">Octauthent</a> provides a dashboard where you can manage users, settings, and analytics.</p><p><a href="https://octauthent.com/">Password protection made easy</a></p><h3>1. Use Cloudflare with Vercel</h3><p>First of all, your domain needs to be managed by Cloudflare to make it work with Octauthent.</p><p>If you already use Cloudflare on your site, it is just a matter of minutes to have your site protected, you can jump to the next step. If you don’t, I wrote a step-by-step tutorial where I explain how to install Cloudflare on your site.</p><p><a href="https://octauthent.medium.com/how-to-install-cloudflare-on-your-site-73dae6bc8814">How to install Cloudflare on your site</a></p><p>If you follow this tutorial, please note that there are a few more steps to make Cloudflare work nicely with Vercel.</p><p>The first thing we check is on the SSL/TLS tab in Cloudflare. Make sure you have it set to <strong>Full</strong> or <strong>Full (strict)</strong>, otherwise you will get a <em>Too many redirects</em> error and can’t access your site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyeTf136IlQQV4g8G8Q-oA.png" /></figure><p>Another thing to check is if the route /.well-known/* can be accessed with HTTP instead of HTTPs. This is used by Vercel to create a Let&#39;s Encrypt certificate.</p><p>To verify if that is possible with your domain, you can run the following command (notice the http:// part in the URL):</p><pre>curl <a href="http://vercel.octauthent.com/.well-known/acme-challenge">http://YOUR-DOMAIN/.well-known/acme-challenge</a> -I</pre><p>If the result is a 404error, you’re good to go. However, if you receive a 3XX code, here is what you can try:</p><ol><li>Go to the SSL/TLS tab on Cloudflare, then Edge Certificates, and disable the Always Use HTTPS option</li></ol><p>2. If after option 1, the curl command still returns a 3XX error code, go to the <em>Rules</em> tab on Cloudflare and create a new Page Rule.</p><p>Enter in the first input field /.well-known/* and select in the select field SSL and <strong>Off</strong>. With <strong>Save and Deploy</strong>, your rule will be applied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dh1NZ9ptChaqv-6_TaaZjw.png" /></figure><h3>2. Install Octauthent on your site</h3><p>Once again, you can check out one of my step-by-step tutorial on Medium, but the steps are really basic:</p><ol><li>Sign up to <a href="https://octauthent.com">Octauthent</a></li><li>Create a new site, choose one or multiple user/password combos</li><li>Go the <em>install</em> tab and follow the instructions</li></ol><p><a href="https://octauthent.medium.com/how-to-password-protect-your-website-with-octauthent-5e634d00faa2">How to password-protect your website with Octauthent</a></p><h3>3. Extra security measures</h3><p>One specific issue that exists with Vercel is that you are forced to have a .vercel.app domain, and this domain cannot be removed (there is a Remove button but it doesn’t really work).</p><p>If a visitor guessed and visited this domain, it would completely bypass Cloudflare and Octauthent, which would be a huge flaw in your site’s security.</p><p>A good way to prevent this is to go to your Vercel Project <strong>Settings</strong>, go to <strong>Domains</strong>, and redirect your .vercel.app domain to your protected domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hO6P8D9qeIaqqdVc191qjg.png" /></figure><p>That’s the end of the tutorial! I hope you enjoyed it</p><p>As you can see on the screenshot above, I actually deployed a demo project on Vercel just to write my tutorial.</p><p>You can check out the result at <a href="https://vercel.octauthent.com/">vercel.octauthent.com</a>. Everything is public except the “<em>Private Post</em>”.</p><p>By the way, here are the credentials:<br>username: <strong>demo</strong><br>password: <strong>octauthent</strong></p><p>Have a nice day 👍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f79e37b1d91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add a login form to any website]]></title>
            <link>https://octauthent.medium.com/how-to-add-a-login-form-to-any-website-9989b4f36d46?source=rss-8c69f5718165------2</link>
            <guid isPermaLink="false">https://medium.com/p/9989b4f36d46</guid>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Octauthent]]></dc:creator>
            <pubDate>Thu, 08 Jul 2021 23:08:25 GMT</pubDate>
            <atom:updated>2021-11-22T08:30:53.930Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to add a login form to any website, without a single line of code</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTrtxQymxjfQlYCBipebxA.png" /></figure><p>Creating a website or an app has never been so easy. There are so many tools and platforms to help you in this journey, with or without code, paid or free, with lots of features to make your life easier.</p><p>With these tools, you can create blogs, e-commerce websites and portfolios in less than a day! However, most of the time, adding a login form to your website quickly becomes a nightmare:</p><ul><li>If you have access to all the code of the website (including the back-end), and if you’re an experienced developer, you can try to code this feature yourself, which will probably take a few weeks, or you can try to integrate an authentication platform, which can be quite complex if it is your first time.</li><li>If you created and deployed your website on a no-code platform, maybe this platform offers a password protection feature, maybe not!</li></ul><p>Whatever your case may be, <a href="https://octauthent.com/"><strong>Octauthent</strong></a> can probably help you!</p><h3><strong>Octauthent</strong> is a simple service that adds login forms to your website</h3><p>Once installed on your site, Octauthent provides a dashboard where you can manage users, settings, and analytics.</p><p><a href="https://octauthent.com/">Password protection made easy</a></p><figure><img alt="Octauthent screenshot" src="https://cdn-images-1.medium.com/max/1024/1*33DHAVu6HH-cWA6NxZMHNQ.png" /></figure><p>Octauthent can be installed on almost every site or platform, even the most limited ones. In fact, there is <strong>only one requirement </strong>to use Octauthent on your website: <strong>You need to own the domain name of this website</strong>.</p><p>If that’s the case, congratulations! Follow the tutorial below, and you’ll have a login form on your website in a few minutes 🎉</p><h3>Before we start, how does it work?</h3><p>To make it very simple, imagine that instead of linking your domain name to your website, you link your domain to a third-party service (in our case, Cloudflare), which then redirects all your traffic to your website.</p><p>Not only it makes your website faster (because the Cloudflare network is available on hundreds of locations all around the globe), but it can also protect your website from attackers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6a8qcjNbS7T6w45zCCVu5w.png" /></figure><p>Now, imagine that the third party service not only redirects traffic, but can also block requests and show them a login form instead of your site.</p><p>That’s exactly what <a href="https://octauthent.com/">Octauthent</a> does!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*FLEK7OTKHdbysfJYovmytQ.png" /></figure><p>Every request to your website domain is intercepted by Cloudflare and analyzed by Octauthent, which acts as a bouncer. Unauthorized requests are blocked, allowed ones are routed to your site through Cloudflare’s intelligent global network</p><p>Now that you have a better understanding of how it works, let me show you how to set up Cloudflare and Octauthent on your site.</p><h3>1. Setup Cloudflare</h3><p>As explained above, Cloudflare is a company that provides web performance and security services, and is <strong>completely free</strong> for most users! If you’re not familiar with Cloudflare, here’s a quick list of some benefits you’ll get:</p><ul><li><strong>CDN</strong> — Cloudflare’s content delivery network helps speed up your site by serving your static content from a huge network of global servers. Cloudflare is the most popular free CDN service.</li><li><strong>SSL </strong>— if your site doesn’t already have an SSL certificate, Cloudflare can help you use HTTPS on your site to get the green padlock in visitors’ browsers</li><li><strong>DNS </strong>— Cloudflare is one of the fastest DNS providers, which can speed up your site’s time to first byte (TTFB)</li><li><strong>DDoS protection </strong>— Cloudflare can help you protect against distributed denial of service (DDoS) attacks. It can also help you just generally filter out malicious traffic</li><li><strong>Other performance benefits </strong>— Cloudflare can help you minify your code, enable Brotli compression, and implement other performance best practices</li></ul><h4>Let’s start</h4><p>For my example, I’ll use a <strong>WordPress blog</strong>, which is already working with my custom domain name: <strong>example-blog.ml</strong>. You can follow the exact same steps with your own domain.</p><p>First, <a href="https://dash.cloudflare.com/sign-up">create a Cloudflare account</a>. As soon as you have signed up, Cloudflare will start the installation process.</p><p>Enter your website domain, then choose the free plan (on the bottom). The free plan is <strong>more than enough</strong> for most website owners, including me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vrpXULxA-a4OwEOhHI2rJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqer47xjxLa4owHYio0Tpw.png" /></figure><p>Cloudflare will now perform a quick scan to detect your current domain configuration. Accept the recommended settings (unless you know what you’re doing), and click on <strong>Continue</strong>.</p><p>In order to use Octauthent on a domain or a subdomain, you <strong>must </strong>have the orange cloud in the “Proxy status” column. In the screenshot below, I’ll be able to install Octauthent on <em>example-blog.ml</em> and <em>www.example-blog.com</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afIn_tgcJLCL9JNYeYVxKg.png" /></figure><p>In order to finish the installation, Cloudflare will now give you clear instructions about what to do from your registrar account (where you bought your domain name!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4g9zPKVD6gw-SnCtW_K4w.png" /></figure><p>In my case, I log into my registrar account, look for the DNS / nameservers settings, and change them as I’m told. Please note that the user interface may be completely different in your case because we probably don’t have the same registrar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rr_e38Xg3QM7LtIBtG8dbg.png" /></figure><p>After that, there is one last step: <strong>waiting. </strong>DNS is a complex matter and there are lots of cache levels, so be patient. You probably need to wait only a few minutes, but in some cases, it can be several hours.</p><p>To know if the installation process is finished, refresh the “Overview” tab of your Cloudflare dashboard. If you still see the setup instructions, wait a little bit more. If the installation is finished, you’ll see the following message</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j9ETjfS6IcM7E1tX3y8qWg.png" /></figure><p>Please note that even after you see this message, you may have to wait a little bit more until your visitors (including you) are actually passing through the Cloudflare network.</p><p>To confirm that Cloudflare is effectively protecting your site, go to:</p><p><strong>https://[your-domain]/cdn-cgi/trace</strong> using your web browser. In my example: <a href="https://example-blog.ml/cdn-cgi/trace">https://example-blog.ml/cdn-cgi/trace</a></p><ul><li>If you see a black text with your domain in the second line, you’re good to go to the next step!</li><li>If you see a <strong>404 Not found </strong>error, a <strong>ERR_SSL_PROTOCOL_ERROR</strong>, or any other result, wait a little bit more. DNS propagation can take up to 24 hours.</li><li>If you see a <strong>ERR_TOO_MANY_REDIRECTS, </strong>you just need to change a setting in your Cloudflare dashboard. Follow <a href="https://octauthent.medium.com/how-to-fix-the-too-many-redirects-error-in-cloudflare-1a76f6a5c887">this short guide</a> to fix it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GsyRORDDEZLyesekFSu7GA.png" /><figcaption>This is what you’re supposed to see</figcaption></figure><h3>2. Install Octauthent</h3><p>Now that all your traffic is passing through Cloudflare, let’s install Octauthent on it.</p><p><a href="https://app.octauthent.com/login/">Sign up to Octauthent</a>, then click on the <strong>New Site</strong> button. For each step, answer the questions, and click <strong>Next.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHr_gfxuqtG7D-A7H5jtWQ.png" /></figure><p>The last step to create your site will be to choose users and passwords. In my case, I’ll start with only one user: “<em>demo</em>”, and I’ll set the password to “<em>octauthent</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EFZrXoT5ksug3wJlcdHj3A.png" /></figure><p>Once your site is created, go to the <strong>Install</strong> tab.</p><p>You will first see a tutorial to create an API Token on your Cloudflare account, just follow the instructions.</p><p>Then, you’ll be asked to choose on which Cloudflare site you want to install Octauthent.</p><p>In my case, I choose the “example-blog.ml” site, which is my example site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*CvNJQcGccDsrVEsPxFIv3Q.png" /></figure><p>Finally, configure which pages will be protected by Octauthent, and which pages will stay public.</p><p>For my example, let’s say I want to protect:</p><ul><li>All the <strong>wp-admin</strong> pages, which contain the admin part of my WordPress</li><li>A very private page where I can write private things. I created a page that can be accessed at <strong>example-blog.ml/private-page/ </strong>(in my case, there is a trailing slash, but maybe not in yours!)</li></ul><p>Here is my config:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*2Aae8_0OGlwOGi0mMVAPaA.png" /></figure><p>Click on the <strong>install</strong> button, wait a few seconds and the Octauthent login form should appear on your website in the next minute! That’s it!</p><p>I hope you enjoyed this tutorial, don’t hesitate to comment if you think it can be improved</p><p>Also, Octauthent is still very new and in active development. Don’t hesitate to tell me what you think about it and how it could be improved.</p><p>Have a nice day 👍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9989b4f36d46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>