<?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 Vu Long Tran on Medium]]></title>
        <description><![CDATA[Stories by Vu Long Tran on Medium]]></description>
        <link>https://medium.com/@vulongtran?source=rss-2842bad95c23------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JNWdXS-jDL3-KnJO.jpeg</url>
            <title>Stories by Vu Long Tran on Medium</title>
            <link>https://medium.com/@vulongtran?source=rss-2842bad95c23------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 11:57:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vulongtran/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 upgrade your Cloudflare domain plan using the API]]></title>
            <link>https://medium.com/@vulongtran/how-to-upgrade-your-cloudflare-domain-plan-using-the-api-ffaf9db12aa0?source=rss-2842bad95c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffaf9db12aa0</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[cloudflare]]></category>
            <dc:creator><![CDATA[Vu Long Tran]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 09:38:10 GMT</pubDate>
            <atom:updated>2020-06-08T02:17:04.386Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide details the steps to help you to change your plan on Cloudflare using the Cloudflare API. You can always change your plan within the user interface of the Cloudflare portal, however, you may be looking to change your plans in bulk and that is where using the Cloudflare API makes more sense.</p><p>For the purposes of Cloudflare settings, a “zone” or “domain zone” is Cloudflare’s naming convention for a “website” URL address.</p><h3>Prerequisites</h3><ul><li><strong>Domain zone is already added to Cloudflare </strong>— You can simple add the domain as a Free domain zone (<a href="https://www.dejavuguides.com/blog/how-to-set-up-cloudflare-free-cdn-to-your-website/">how to add here</a>)</li><li><strong>Domain zone ID:</strong> Zone ID retrieved from your Cloudflare portal. In my example, the zone ID for dejavuguides.com. Note — this is different from the ID you see in the website URL when you’re logged into Cloudflare.</li><li><strong>Cloudflare plan in mind </strong>— So you know what you want to upgrade your plan to. You will typically need to have a credit card in place within your Cloudflare portal if you plan on selecting Professional or Business plan. Or if you have purchased an Enterprise license from the Cloudflare sales team, then an Enterprise license enabled by the team in the backend.</li><li><strong>Details to allow you to use the Cloudflare API </strong>— This is essentially your log in details and ensures only authorised users can make changes to your Cloudflare settings for your domain zones.</li><li>Auth-Email: Your Cloudflare log in email address</li><li>Auth-Key: Your Cloudflare Global API Key (which you’ll find in your Cloudflare settings when you’re logged in)</li></ul><h3>Overview of the process to change your domain plan</h3><p>To upgrade a domain to Cloudflare Enterprise using the API, you will need to go through a two step process.</p><ol><li><strong>Identify your CloudflarePlanIDs</strong> — Identify the Available CloudflarePlanID that is unique for your domain zone (Using the “<a href="https://api.cloudflare.com/#zone-rate-plan-list-available-plans">List Available Plans</a>” API)</li><li><strong>Edit the domain zone plan — </strong>Edit domain zone to the plan type you have chosen (Using the “<a href="https://api.cloudflare.com/#zone-edit-zone">Edit Zone</a>” API)</li></ol><h3>1. Identify your CloudflarePlan IDs using the Cloudflare API</h3><p>This is required, as Cloudflare has specific Cloudflare plan IDs set up in the backend, so you will need to identify what your unique Cloudflare plan IDs are for your domain zone.</p><p>There is a unique ID for Free, Professional, Business and Enterprise plans for each of your domain zones.</p><p>Then you run the <a href="https://api.cloudflare.com/#zone-rate-plan-list-available-plans">List Available Plans API</a> within a <a href="https://en.wikipedia.org/wiki/Terminal_(macOS)">Terminal</a> (MacOS) or <a href="https://en.wikipedia.org/wiki/Cmd.exe">CommandPrompt</a> (Windows).</p><pre>curl -X GET &quot;https://api.cloudflare.com/client/v4/zones/YOURZONEID/available_plans&quot; \ -H &quot;X-Auth-Email: YOUREMAILADDRESS&quot; \ -H &quot;X-Auth-Key: YOURAPIKEY(Global-Auth-Key)&quot; \</pre><pre>-H &quot;Content-Type: application/json&quot;</pre><p>You will then receive an output for this “List Available Plans” API.</p><pre>OUTPUT:<br> {&quot;result&quot;:[{&quot;id&quot;:&quot;UNIQUE-FREE-PLAN-ID&quot;,&quot;name&quot;:&quot;Free Plan&quot;,&quot;price&quot;:0,&quot;currency&quot;:&quot;USD&quot;,&quot;frequency&quot;:&quot;monthly&quot;,&quot;is_subscribed&quot;:false,&quot;can_subscribe&quot;:true,&quot;legacy_id&quot;:&quot;free&quot;,&quot;legacy_discount&quot;:false,&quot;externally_managed&quot;:false},{&quot;id&quot;:&quot;UNIQUE-BUSINESS-PLAN-ID&quot;,&quot;name&quot;:&quot;Business Plan&quot;,&quot;price&quot;:200,&quot;currency&quot;:&quot;USD&quot;,&quot;frequency&quot;:&quot;monthly&quot;,&quot;is_subscribed&quot;:false,&quot;can_subscribe&quot;:true,&quot;legacy_id&quot;:&quot;business&quot;,&quot;legacy_discount&quot;:false,&quot;externally_managed&quot;:false},{&quot;id&quot;:&quot;UNIQUE-PROFESSIONAL-PLAN-ID&quot;,&quot;name&quot;:&quot;Professional Plan&quot;,&quot;price&quot;:20,&quot;currency&quot;:&quot;USD&quot;,&quot;frequency&quot;:&quot;monthly&quot;,&quot;is_subscribed&quot;:false,&quot;can_subscribe&quot;:true,&quot;legacy_id&quot;:&quot;pro&quot;,&quot;legacy_discount&quot;:false,&quot;externally_managed&quot;:false},{&quot;id&quot;:&quot;UNIQUE-ENTERPRISE-PLAN-ID&quot;,&quot;name&quot;:&quot;Enterprise&quot;,&quot;price&quot;:0,&quot;currency&quot;:&quot;USD&quot;,&quot;frequency&quot;:&quot;monthly&quot;,&quot;is_subscribed&quot;:false,&quot;can_subscribe&quot;:false,&quot;legacy_id&quot;:&quot;enterprise&quot;,&quot;legacy_discount&quot;:false,&quot;externally_managed&quot;:true}],&quot;success&quot;:true,&quot;errors&quot;:[],&quot;messages&quot;:[],&quot;result_info&quot;:{&quot;page&quot;:1,&quot;per_page&quot;:25,&quot;total_pages&quot;:1,&quot;count&quot;:4,&quot;total_count&quot;:4}}</pre><p>Take note of the Unique Cloudflare Plan IDs here, and copy and paste the one you want to change your plan to.</p><p>Now we need to change the plan to that using the next API.</p><h3>2. Edit the domain zone plan using the Cloudflare API</h3><p>Change the domain zone plan using the Cloudflare “<a href="https://api.cloudflare.com/#zone-edit-zone">Edit Zone</a>” API</p><pre>curl -X PATCH &quot;https://api.cloudflare.com/client/v4/zones/ZONEID&quot; \-H &quot;X-Auth-Email: YOUREMAILADDRESS&quot; \ -H &quot;X-Auth-Key: YOURAPIKEY-Global-Auth-Key&quot; \-H &quot;Content-Type: application/json&quot; \--data &#39;{&quot;plan&quot;:{&quot;id&quot;:&quot;INSERT-CLOUDFLARE-PLAN-ID-HERE&quot;}}&#39;</pre><p>You will then receive an output for this Cloudflare “Edit Zone” API. It should look something like this but with your domain details.</p><pre>{ &quot;success&quot;: true, &quot;errors&quot;: [], &quot;messages&quot;: [], &quot;result&quot;: {</pre><pre>&quot;id&quot;: &quot;ZONE-ID&quot;, &quot;name&quot;: &quot;dejavuguides.com&quot;, &quot;development_mode&quot;: 7200, &quot;original_name_servers&quot;: [ &quot;ns1.dejavuguides.com&quot;, &quot;ns2.dejavuguides.com&quot; ], &quot;original_registrar&quot;: &quot;GoDaddy&quot;, &quot;original_dnshost&quot;: &quot;NameCheap&quot;, &quot;created_on&quot;: &quot;2014-01-01T05:20:00.12345Z&quot;, &quot;modified_on&quot;: &quot;2014-01-01T05:20:00.12345Z&quot;, &quot;activated_on&quot;: &quot;2014-01-02T00:01:00.12345Z&quot;, &quot;owner&quot;: { &quot;id&quot;: &quot;OWNER-ID&quot;, &quot;email&quot;: &quot;<a href="https://www.dejavuguides.com/cdn-cgi/l/email-protection">[email protected]</a>&quot;,</pre><pre>&quot;type&quot;: &quot;user&quot; }, &quot;account&quot;: { &quot;id&quot;: &quot;ACCOUNT-ID&quot;, &quot;name&quot;: &quot;Demo Account&quot; }, &quot;permissions&quot;: [ &quot;#zone:read&quot;, &quot;#zone:edit&quot; ], &quot;plan&quot;: { &quot;id&quot;: &quot;CLOUDFLARE-PLAN-ID&quot;, &quot;name&quot;: &quot;Pro Plan&quot;, &quot;price&quot;: 20, &quot;currency&quot;: &quot;USD&quot;, &quot;frequency&quot;: &quot;monthly&quot;, &quot;legacy_id&quot;: &quot;pro&quot;, &quot;is_subscribed&quot;: true, &quot;can_subscribe&quot;: true }, &quot;plan_pending&quot;: { &quot;id&quot;: &quot;CLOUDFLARE-PLAN-ID&quot;, &quot;name&quot;: &quot;Pro Plan&quot;, &quot;price&quot;: 20, &quot;currency&quot;: &quot;USD&quot;, &quot;frequency&quot;: &quot;monthly&quot;, &quot;legacy_id&quot;: &quot;pro&quot;, &quot;is_subscribed&quot;: true, &quot;can_subscribe&quot;: true }, &quot;status&quot;: &quot;active&quot;, &quot;paused&quot;: false, &quot;type&quot;: &quot;full&quot;,</pre><pre>&quot;name_servers&quot;: [ &quot;tony.ns.cloudflare.com&quot;, &quot;woz.ns.cloudflare.com&quot; ] } }</pre><p>Then log into your Cloudflare dashboard and check if it has been changed to this new plan you have selected successfully.</p><p>Screenshots to help you</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O5ZevmPJk3xCvlptmZtiPA.png" /><figcaption>This is where you find your Cloudflare API Key (Global API Key is what you need)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2Ow1mK_ZLHMNMHVxdvk1g.png" /><figcaption>This is where you find your Cloudflare Zone ID</figcaption></figure><h3>Useful links</h3><ul><li><a href="https://api.cloudflare.com/#zone-edit-zone">Edit Zone API</a></li><li><a href="https://api.cloudflare.com/#zone-rate-plan-list-available-plans">List Available Plans API</a></li></ul><p><em>Originally published at </em><a href="https://www.vulongtran.com/2019/02/how-to-upgrade-cloudflare-domain-plan-api"><em>www.vulongtran.com</em></a><em> on February 8, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffaf9db12aa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do I setup custom nameservers on Cloudflare?]]></title>
            <link>https://medium.com/@vulongtran/how-do-i-setup-custom-nameservers-on-cloudflare-310269b845b2?source=rss-2842bad95c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/310269b845b2</guid>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[nameserver]]></category>
            <dc:creator><![CDATA[Vu Long Tran]]></dc:creator>
            <pubDate>Thu, 07 Feb 2019 00:00:00 GMT</pubDate>
            <atom:updated>2020-06-08T02:18:53.673Z</atom:updated>
            <content:encoded><![CDATA[<p>You may be wondering what custom nameservers on Cloudflare are. They are basically nameservers with your own naming system on the nameservers itself. You can also call them “vanity nameservers”.</p><p>On Cloudflare, you can create and enable nameservers which reflect your own domain name (eg. ns.dejavuguides.com). You can use them in place of your Cloudflare assigned nameservers (replacing them). Such that when someone looks up your nameservers, they will see the following:</p><p>[VuLong ~]$ dig <a href="http://dejavuguides.com/">dejavuguides.com</a> ns +short</p><p><a href="http://ns1.dejavuguides.com/">ns1.dejavuguides.com</a>.</p><p><a href="http://ns2.dejavuguides.com/">ns2.dejavuguides.com</a>.</p><p><a href="http://ns3.dejavuguides.com/">ns3.dejavuguides.com</a>.</p><p>Please note that custom nameservers have the following limitations:</p><ul><li>You must have between two and five custom nameservers</li><li>The custom nameservers can only be created as subdomains of dejavuguides.com (e.g. ns1.dejavuguides.com and ns2.dejavuguides.com).</li><li>When custom nameservers are created, glue records need to be created at your registrar with the IP addresses of your custom nameservers. Failure to do so can cause all DNS lookups for your site to fail. Further information can be found here: Can I get vanity or custom nameservers using Cloudflare?</li><li>Note: Your assigned Cloudflare nameservers will continue to work even after custom nameservers are enabled.</li></ul><p>Here’s an example of how I have enabled this for my domain — dejavuguides.com</p><h3>Set up custom nameservers on Cloudflare</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*2bGbMJEzWmT2X3IcB6AmJg.png" /></figure><p>Set up glue records reflecting IPv4 address and IPv6 address onto your domain name registrar. In my case, I did this on my domain name registrar — hover.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlCkCWdh7FNYGE-tRiUNQQ.png" /></figure><p>Then test this out. You can use something like this free online DNS service to make it easier to check <a href="https://www.whatsmydns.net/#NS/www.dejavuguides.com">https://www.whatsmydns.net/#NS/www.dejavuguides.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*jaV-vRMAak1PyYxm4UcN1Q.png" /></figure><p>Happy testing and set up!</p><p>Note — this is only available on the Business and Enterprise plans.</p><p><em>Originally published at </em><a href="https://www.vulongtran.com/2019/02/how-do-i-setup-custom-nameservers-on-cloudflare/"><em>www.vulongtran.com</em></a><em> on February 7, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=310269b845b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do I check if SSL is working on my website using Cloudflare?]]></title>
            <link>https://medium.com/@vulongtran/how-do-i-check-if-ssl-is-working-on-my-website-using-cloudflare-be70685152ce?source=rss-2842bad95c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/be70685152ce</guid>
            <category><![CDATA[dedicated-ssl-certificate]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[custom-ssl-certificates]]></category>
            <dc:creator><![CDATA[Vu Long Tran]]></dc:creator>
            <pubDate>Fri, 11 May 2018 12:05:00 GMT</pubDate>
            <atom:updated>2020-06-08T02:18:13.490Z</atom:updated>
            <content:encoded><![CDATA[<p>These steps below assumes that you are using Cloudflare to manage your website property so it is available closer to your users around the world.</p><h3>So how do I check if SSL is working on my website using Cloudflare?</h3><h3>Step 1 — Check that the Connection is Secure</h3><p>When you type in your website, you should see it say the word “Secure” in the left of the address bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*s24RQflqWkiJgKnJ.png" /></figure><p>Then, when you click on this “Secure” lock, it’ll say, “Connection is secure”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/0*287HjUGWSH3-ykFK.png" /></figure><h3>Step 2 — Check that the certificate is indeed live and verified by the web browser</h3><p>You can check by using the Inspect element function available within your web browser.</p><ul><li>You can do this by selecting the Chrome menu at the top-right of your browser window, then <strong>select Tools &gt; Developer Tools</strong>.</li><li>Alternatively you can right-click on any page element and select Inspect Element.</li><li>You can use the hot keys, Ctrl+Shift+I on Windows device (or Cmd+Opt+I on Mac device) to open the DevTools (DeveloperTools).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*jkus7rlK5gPXTFem.png" /></figure><p>Example of where to find the Developer Tools on a Mac device</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*qCMstDW538xkCcm0.png" /></figure><p>You’ll receive a message if “This page is secure (valid HTTPS)</p><h3>Step 3 — How do I check what type of SSL is working on my website?</h3><p>Once you have confirmed that the SSL certificate is working on your website and it is secure, you can check how it appears to website visitors.</p><p>Cloudflare offers you a few different types of SSL certificates:</p><ul><li>Free Universal SSL certificates</li><li>Dedicated SSL certificates</li><li>Custom SSL certificates</li></ul><p>Each of these SSL certificates are secure, however, the link/ URL displayed will differ and who manages the SSL certificate.</p><ul><li>Free Universal SSL certificates — shows ssl384038.cloudflaressl.com, managed by Cloudflare</li><li>Dedicated SSL certificates — shows yourdomain.com, managed by Cloudflare</li><li>Custom SSL certificates — shows yourdomain.com, managed by your SSL certificate provider</li></ul><p>Here’s an example of the Universal SSL certificate (Example A) and Dedicated SSL certificate (Example B):</p><p><strong>Example A — ssl384038.cloudflaressl.com — Using a free Universal SSL certificate</strong><br> For my website <a href="https://www.dejavuguides.com/">https://www.dejavuguides.com/</a>, you’ll notice that ssl384038.cloudflaressl.com appears as the SSL certificate for my website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*M5nAbgDDB3nVoH5_.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/0*GZSRhCCvQbE6VSJp.png" /></figure><p><strong>Example B — vulongtran.com — Using a dedicated SSL certificate</strong><br> For my website <a href="https://www.vulongtran.com/">https://www.vulongtran.com/</a>, you’ll notice that vulongtran.com appears as the SSL certificate for my website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*L2MltIYOIawSBv8b.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*w1MtX0sh06Tysn5B.png" /></figure><p>Enjoy securing your website SSL!</p><p><em>Originally published at </em><a href="https://www.vulongtran.com/2018/05/how-do-i-check-if-ssl-is-working-on-my-website-using-cloudflare/"><em>www.vulongtran.com</em></a><em> on May 11, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be70685152ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set your Cloudflare firewall to simulate firewall event actions]]></title>
            <link>https://medium.com/@vulongtran/how-to-set-your-cloudflare-firewall-to-simulate-firewall-event-actions-5398357b4d6a?source=rss-2842bad95c23------2</link>
            <guid isPermaLink="false">https://medium.com/p/5398357b4d6a</guid>
            <category><![CDATA[web-application-firewall]]></category>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[cloudflare]]></category>
            <dc:creator><![CDATA[Vu Long Tran]]></dc:creator>
            <pubDate>Wed, 26 Oct 2016 13:01:00 GMT</pubDate>
            <atom:updated>2020-06-08T02:17:37.593Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a high level guide of how to set your firewall in Cloudflare to simulate firewall event actions. This means that the firewall will only take note and log events and the action it would have taken.</p><p>This is very useful when you want to customise the Web Application Firewall around your organisation’s business processes, so that you can identify and continue to allow legitimate requests to pass.</p><p>You can view this process, as looking for “false negatives”, and <a href="https://www.dejavuguides.com/2017/02/13/how-to-customise-your-cloudflare-firewall-for-your-business/">working backwards to customise them</a> to your business.</p><p>Typically, these would be the options you would have within the firewall.</p><ul><li>Simulate: Logs the event and does not block or challenge the visitor (you can still decide to set to a block or challenge after review of the event).</li><li>Block: Block will block visitors from that IP from accessing the site.</li><li>Challenge: Will display a challenge (captcha) page before the visitor can enter the site.</li></ul><h3>How to set your Cloudflare to simulate firewall events</h3><h3>Step 1 — Go to the “Firewall” tab</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*y1Fos6q4vBuaH_aO.png" /></figure><h3>Step 2 — Click on the “Web Application Firewall” sub tab</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*3IdNqFVAdMJK_phP.png" /></figure><h3>Step 3 — Make sure your Web Application Firewall is set to Off</h3><p>As we are simulating firewall events, let’s first make sure your Web Application Firewall is set to Off. This is set to “Off” by default, so you can customise and switch it on when you are ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*8tnCt4tvm8w_9JKN.png" /></figure><h3>Step 4 — Let’s review your Web Application Firewall settings and set to Simulate</h3><h3>Step 4.1 — Review your “Package: Cloudflare Rule Set”</h3><p>Let’s review your “Package: Cloudflare Rule Set”. You will be able to review when you click on the “Rule Details” link. It’ll expand and give you a list of the rule groups you can switch on/ off.</p><p>If you get stuck and can’t find it, copy this link below and put in your domain here.<br> <a href="https://dash.cloudflare.com/firewall/YOURDOMAIN.com/waf">https://www.cloudflare.com/a/firewall/YOURDOMAIN.com/waf#</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*SxtA9yuaYkxpMcaj.png" /></figure><h3>Step 4.2 — Review “Package: Cloudflare Rule Set” Rule Details</h3><p>You should now see a set of Cloudflare Rule Sets that you can switch on and off.</p><p>Cloudflare Flash, Cloudflare Php, Cloudflare Specials and Cloudflare WordPress will be the rules are set to on by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*mFGNniC_1kIzQlGQ.png" /></figure><h3>Step 4.3 — Explore the ruleset groups to deep dive and configure</h3><p>You can click on the group name to configure each ruleset group further. You will want to do this depending on your organisation’s business needs.</p><p>The goal here is to customise the settings so that you can get the highest possible security settings while not compromising on your normal required business operations. This is where the “Simulate” function will come in handy.</p><p>Depending on your business again, you can configure your Cloudflare settings. I will use Cloudflare Flash ruleset as an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/113/0*bNqd2K4Eim8uLnSE.png" /></figure><p>Once you click the Cloudflare ruleset, you will see a list of rules and options on how to configure it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*D0apPd33Ydi9BqID.png" /></figure><p>Then you can change the mode from “Default” to a preferred option. There is some details on what this “Default Mode” is in the column next to “Mode”.</p><p>For the purpose of this exercise, we will then set the Mode to “Simulate”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*IiaodhePNFNWGWhk.png" /></figure><p>Here are what the options mean:</p><ul><li><strong>Simulate</strong>: Logs the event and does not block or challenge the visitor (you can still decide to set to a block or challenge after review of the event).</li><li><strong>Block</strong>: Block will block visitors from that IP from accessing the site.</li><li><strong>Challenge</strong>: Will display a challenge (captcha) page before the visitor can enter the site.</li><li><strong>Disable</strong>: Will simply turn off this particular rule</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*AEu071nhtB-Ovnib.png" /></figure><p>Continue to do the same with the other rules and rulesets that are available. Some of these rule and rulesets you will already know how you want to configure it based on your business needs. Others, you may really want to set to simulate to make sure.</p><h3>Step 5 — Review the OWASP ruleset package as well</h3><p>Next, review the “Package: OWASP ModSecurity Core Rule Set” and configure it accordingly. For starting off, you can start with the simulate mode to get things started.</p><h4>What is OWASP?</h4><p>This package consists of rulesets derived from the OWASP ModSecurity Core Rule Set. These provide an easily pluggable set of generic attack detection rules that provide a base level of protection for any web application.</p><p>The OWASP rules operate in scoring threshold mode: each match against a rule increases the threat score of that request. Once a request exceeds a configurable sensitivity threshold (off, low, or high), the action is taken. This action can be simulate (create a log entry but do not block the request), challenge (present the user with an in-browser challenge page, and log), or block (reject the request and log).</p><p>Individual rule groups within the OWASP package can be enabled or disabled in “rule details”, after which rules can be managed at the individual rule level through the advanced option.</p><h3>Step 6 — When you are ready, switch your Web Application Firewall is set to On</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*XmWxOt2D5ekzoroK.png" /></figure><p>Under the “Traffic” tab. You can scroll down until you see the “Firewall Events” section. This is where you will find the simulated, challenged firewall events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*PLK3gAW2svek2aWv.png" /></figure><h3>Step 8 — Review and update settings</h3><p>Keep iterating and reviewing settings until you are comfortable.</p><p><em>Originally published at </em><a href="https://www.vulongtran.com/2016/10/how-to-set-your-cloudflare-firewall-to-simulate-firewall-event-actions/"><em>www.vulongtran.com</em></a><em> on October 26, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5398357b4d6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>