Skip to content

AskAndroids.com

Android Tutorial Station

Cloudflare free CDN service and DDoS protection

Coludflare is a free CDN that has existed for years and I try to use it in all my projects since it improves the loading speed of the website, but despite the fact that its creators give it more virtues, I think that in the free version it is what That can offer us.

What is a CDN?

CDN stands for Content Delivery Network and this system consists of a series of servers distributed in various locations around the world that store copies of data and then serve users based on their geographical proximity to the server. For example, a CDN may have servers in the Netherlands, USA and China, because when a Spanish user accesses a website, the CDN delivers the data from the Holland server as it is closer to Spain and the response time is lower.

Another advantage offered by a CDN, apart from improving the response time , is that it reduces the bandwidth consumption of the main server as well as reduces its load .

Cloudflare serves as a CDN for static resources, such as images, javascript files with .js extension, CSS style files and static HTML pages with .shtml extension
This helps us reduce the necessary bandwidth, improve the response time of our website, reduce server load and protect us from possible DDoS attacks.

Is it advisable to use Cloudflare?

The answer as always is “depends on the type of web project”, but I would say that it is recommended in 90% of cases. If you have a personal blog, a company page or a small community it is highly recommended to use the service.

If your project doesn’t need an image cache, static pages and other resources, then you don’t need Cloudflare at all.

Other interesting features of Cloudflare

There were a couple of things that caught my attention when using Cloudflare and were:

Page rules

With this we can make rules to decide which elements to cache and which not. I recommend reading the tutorials on the website itself:
Introduction
Introduction II (Advanced caching)
URL redirection (URL forwarding)

Stops spammers and displays visitor statistics

The system has an IP filter that does not allow access to the web of malicious IPs, protecting from spam and DDoS.
He also says that it protects against atques of SQL and XSS injection, but its filters are very basic and does not detect very simple techniques to avoid the filter (at least in the free version that I have been able to try).

Visitor Statistics

Cloudflare shows us visitor statistics which, I don’t see very useful, because to count and analyze the traffic there is nothing better than Google Analytics. It also shows us statistics of the bandwidth we have saved thanks to Cloudflare, but I think they “inflate” enough (or at least they don’t give me the accounts) to give the user the impression that he really needs it.

No comments yet.

Leave a Reply

Your email address will not be published.

Comments (0)