{"id":7201,"date":"2023-11-30T21:26:00","date_gmt":"2023-11-30T20:26:00","guid":{"rendered":"http:\/\/blog.bart.sk\/en\/?p=7201"},"modified":"2024-01-25T12:38:24","modified_gmt":"2024-01-25T11:38:24","slug":"protect-websites-digital-threats-help-cloudflare-example","status":"publish","type":"post","link":"https:\/\/blog.bart.sk\/en\/protect-websites-digital-threats-help-cloudflare-example\/","title":{"rendered":"How to Protect Websites from Digital Threats? With the Help of Cloudflare, for Example"},"content":{"rendered":"<p><b>We regularly write about<\/b><a href=\"https:\/\/blog.bart.sk\/en\/category\/online-safety\/\"><b> digital threats<\/b><\/a><b> on our blog. We&#8217;ve most often alerted you to fraudulent practices that are intended to harm end users of the Internet. Such attacks are usually carried out for direct profit, for example by stealing a credit card. However, in the IT world, we encounter attacks on our web applications much more often. They usually try to steal customer data or get a server from which they can spread SPAM. Fortunately, there are ways to protect apps.<\/b><\/p>\n<h2><b>Nonstop under attack<\/b><\/h2>\n<p><b>Attacks on web applications are in most cases fully automated.<\/b><span style=\"font-weight: 400;\"> Therefore, a simple rule applies: if a website is publicly available, it&#8217;s most likely regularly attacked. For a better idea of the frequency of these attacks, I&#8217;ll give an example from our statistics: <\/span><b>an<\/b> <b>inconspicuous blog built on WordPress with minimal traffic faces 14 to 120 hack attempts in one day.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-11293\" src=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2023\/11\/Sn\u00edmka-obrazovky-2023-11-30-o-14.56.30-2000x1108.png\" alt=\"\" width=\"2000\" height=\"1108\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-11293\" src=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2023\/11\/Sn\u00edmka-obrazovky-2023-11-30-o-14.56.30-2000x1108.png\" alt=\"\" width=\"2000\" height=\"1108\" \/><\/p>\n<p><b>Protecting websites from various types of attacks is a complex topic that we should pay attention to and on a regular basis check whether the security of a website is sufficient.<\/b><span style=\"font-weight: 400;\"> These steps are necessary regardless of whether we manage a WordPress blog or a large eshop. For us, Cloudflare service is a very useful tool in protecting a website.<\/span><\/p>\n<h2><b>What is Cloudflare?<\/b><\/h2>\n<p><b>Simply put, Cloudflare is a DNS server on steroids.<\/b><span style=\"font-weight: 400;\"> It acts as an intermediary that allows us to effectively manage the flow of data to our website and at the same time the exit of information from it. <\/span><b>Internet traffic (e.g. web loading) is processed by Cloudflare before it &#8220;arrives&#8221; at our site. <\/b><span style=\"font-weight: 400;\">Thanks to this, we can use not only services to improve security, but also a number of other functions, such as data caching, SEO optimization or protection against dangerous bots.<\/span><\/p>\n<h2><b>The most useful safety measures<\/b><\/h2>\n<h3><b>WAF<\/b><\/h3>\n<p><b>Currently, we use the WAF function the most, which can filter the most common ways of attacking a website.<\/b><span style=\"font-weight: 400;\"> SQL Injection or an attempt to steal files that contain database access data are examples. <\/span><b>The basic &#8220;protection set&#8221; for websites currently has about 500 rules<\/b><span style=\"font-weight: 400;\"> that Cloudflare itself manages. Therefore, they should be up to date and constantly updated.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-11294\" src=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2023\/11\/Sn\u00edmka-obrazovky-2023-11-30-o-15.11.05-2000x456.png\" alt=\"\" width=\"2000\" height=\"456\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-11294\" src=\"https:\/\/blog.bart.sk\/wp-content\/uploads\/2023\/11\/Sn\u00edmka-obrazovky-2023-11-30-o-15.11.05-2000x456.png\" alt=\"\" width=\"2000\" height=\"456\" \/><\/p>\n<p><b>WAF is excellently configurable. It allows us to set the level of &#8220;sensitivity&#8221; when evaluating a threat, or how we&#8217;ll treat a potential attacker <\/b><span style=\"font-weight: 400;\">(will we ban them or try to verify that it isn&#8217;t a robot?).<\/span><\/p>\n<h3><b>Location-based blocking<\/b><\/h3>\n<p><b>The second popular feature is blocking of web queries based on the GEO location (by IP address) of the device.<\/b><span style=\"font-weight: 400;\"> Most of the websites we publish don&#8217;t have real customers from China, Russia or Oceania. So we can simply improve web security by disabling access from areas where we don&#8217;t have customers. At the same time, eshops can restrict access from countries to which they cannot actually deliver goods, for example.<\/span><\/p>\n<h3><b>Rate Limiting<\/b><\/h3>\n<p><b>The third useful feature is Rate Limiting, i.e. limiting the number of requests that can be made from one IP address over a certain period of time.<\/b><span style=\"font-weight: 400;\"> The website is thus protected against attempts to disable it by overloading. In addition, this setting also marginally helps the server performance.<\/span><\/p>\n<p><b>In addition to these three tweaks, Cloudflare provides a large number of other useful tools. Therefore, it&#8217;s definitely worth exploring it and considering its use on your project too.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"We regularly write about digital threats on our blog. We&#8217;ve most often alerted you to fraudulent practices that&hellip;","protected":false},"author":13,"featured_media":7283,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":""},"categories":[251],"tags":[506,510,508,507,509],"_links":{"self":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/7201"}],"collection":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/comments?post=7201"}],"version-history":[{"count":2,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/7201\/revisions"}],"predecessor-version":[{"id":7293,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/7201\/revisions\/7293"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/media\/7283"}],"wp:attachment":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/media?parent=7201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/categories?post=7201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/tags?post=7201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}