Leverage CDN (Content Delivery Network) to improve both speed and security on your adult project.

What does CDN do? Think of it as a man in the middle, who stands between your website and any visitor. This middle man (CDN) is your best friend when it comes to security, speed and caching. Since all your website traffic goes through the CDN first before reaching your server, it greatly reduces the resources used by your machine. In my opinion it is just silly not to use something that brings so much benefit. There are many CDN service providers out there, I will only talk about the one I’m using, which is also the most popular one.

Cloudflare is currently one of the best if not the best service providing content delivery and security. It is a must have for any webmaster, it’s free and the process of adding a website to Cloudflare platform is easy.

 

The most noticeable benefits of using the service:

  • CDN – Cloudflare’s content delivery network helps speed up your website by serving your static content from a vast network of global servers.
  • Cloudflare is the most popular free CDN service. SSL – if your site doesn’t already have an SSL certificate, Cloudflare can help you use HTTPS on your WordPress site to get the green padlock in your visitors’ browsers.
  • DNS – Cloudflare is one of the fastest DNS vendors that can speed up time to first byte (TTFB) . Security rules – Cloudflare allows you to set custom security rules to secure certain parts of the site, such as the WordPress dashboard.
  • DDoS protection – Cloudflare can help protect you against distributed denial of service (DDoS) attacks. It can also help you filter out malicious traffic in general.
  • Other Performance Benefits – Cloudflare can help you reduce your code, enable Brotli compression, and implement other best practices.

 

What we are going to need

  • Domain (obviously..)
  • Access to the admin panel where the said domain has been purchased.
  • Cloudflare account
  • IP address of a server your domain will be hosted on

Add your adult website to the Cloudflare CDN

The process is pretty straightforward and step by step, I’ll add extra visuals for some help.

 

Once you created an account, click “Add a Site” in Cloudflare’s dashboard

 

Type in your website’s address and click Add site. The platform will detect Domain’s current settings and prompt you to add/edit DNS records, press continue we will do it later
If you’re using the mainstream domain name providers, Cloudflare will detect it and tell you to change Domain’s DNS settings in the domain admin panel

If you’re not sure where to change the settings just look around the client panel of the domain name provider you’re using. Delete whatever the current DNS records are and paste the ones provided by Cloudflare, hit save/accept and once it’s done go back to the Cloudflare window and confirm changing the records. If everything has been done properly you will see the message saying so.

 

Now we need to point the domains A and AA Records to the IP address of your server/hosting in the Cloudflare’s DNS settings. This can be found in the admin panel of your hosting provider, in some cases with Shared WordPress Hosting Plans contact with support might be needed.

 

Once the A (IPV4) and AAAA (IPV6) records are set, that’s all done. Your domain is now connected to Cloudflare.

Now its time to get all the benefits of the CDN. I’ll assume you’re running WordPress, download and activate the plugin WP Cloudflare Super Page Cache. Go to the Plugin settings, follow the instructions and hit update.

 

The default settings of the plugin set everything up in the Cloudflare account via the Api Key.

It is worth turning on some extra functions in the settings of the caching plugin like pre-loading and pre-fetching URLS.
Enable browser caching of static files like images, text etc. If you run your own server it is recommended to not do it via this plugin.

Your website is now cached, secured and protected by Cloudflare’s CDN network. There’s more the service has offer, some of which are very powerful and free features such as “Page Rules” and “Apps”

A good example of what page rules can do would be setting up a rule that is caching all your images in the WordPress upload folder so they’re served from CDN and not server side. The default upload folder in WP is “yourwebsite.com/public_html/wp-content/uploads/” which translates to url “https://yourwebsite.com/wp-content/uploads/”

 

By adding “*” after “/” we tell Cloudflare to cache everything from the “…/uploads/” URL path onward

Page rules allow you to redirect, tweak how your pages behave and much more, it is worth to read the official F.A.Q at the Cloudflare’s Help Centre.

 

ThePornAdmin
Author: ThePornAdmin

0 0 votes
Rate this article
Subscribe
Notify of
2 Comments
Inline Feedbacks
View all comments
Guest
19 days ago

I considered my site to be pretty quick. Enabling this increased my LCP and FCP pretty good.