Setting up Cloudflare
Technical Assignment: Connecting and Configuring Cloudflare (Free Version)
1. Objective
Integrate the website with Cloudflare to improve speed, protection, and security without paid features and considering SEO.
2. Main Tasks
2.1. Connecting to Cloudflare
- Register or log in to a Cloudflare account.
- Add the website to Cloudflare.
- Change the DNS servers at the domain name registrar to Cloudflare DNS.
- Ensure that all current DNS records (A, CNAME, MX, TXT, etc.) are transferred correctly.
2.2. SSL and HTTPS
Enable and configure free SSL from Cloudflare:
- Use Flexible SSL or Full SSL mode, depending on whether the server supports SSL.
- Enable automatic redirection from HTTP to HTTPS.
- Check for any "mixed content" errors on the site.
Ensure that all pages of the site load correctly over HTTPS and all resources (CSS, JS, images) are accessible.
2.3. Caching Settings
- Enable caching of static content (CSS, JS, images) through Cloudflare.
- Exclude the following pages from caching:
- Pages with dynamic content (login, registration, cart, personal account).
- Pages with the
noindextag to avoid indexing issues.
- Enable automatic cache clearing when the site is updated (if applicable).
2.4. DDoS and Bot Attack Protection
- Enable basic DDoS protection (Cloudflare enables it by default).
- Configure basic protection against bots and malicious traffic through Cloudflare, using standard protection settings (Security Level: Medium).
- Ensure that the protection does not interfere with access for real users and search engine bots.
2.5. Setting Up Page Rules
Create Page Rules for:
- Caching the homepage and static content.
- Disabling caching on pages with dynamic content.
- Ensuring redirection from HTTP to HTTPS (if required).
Limit to 3 Page Rules, as the free version of Cloudflare provides only 3 rules.
2.6. Performance Optimization
- Enable support for HTTP/2 and HTTP/3.
- Activate Auto Minify for automatic compression of HTML, CSS, and JavaScript.
- Disable image compression features (Polish) and resource prioritization (Railgun), as they are not available in the free version.
2.7. IP Address Forwarding
- Configure the server (Apache/Nginx) for correct forwarding of real user IP addresses through the X-Forwarded-For header.
- Ensure that analytics systems (e.g., Google Analytics) correctly account for real user IP addresses.
2.8. Indexing and SEO Check
- Ensure that robots.txt and canonical URLs are correctly configured and do not block important pages from indexing.
- Check that pages with the
noindexattribute are not cached. - Recheck the site settings in Google Search Console after connecting Cloudflare.
3. Result
- The site operates through Cloudflare with HTTPS and accelerated content delivery.
- Static files (CSS, JS, images) are loaded via CDN.
- Dynamic pages are not cached, and search correctly indexes the pages.
- Real user IP addresses are forwarded to the server.
- Improved site loading speed and basic protection against DDoS and bots are provided.
-
"Защита от DDoS и бот-атак" - только в платных тарифах...
-
Current freelance projects in the category PHP
Website auditTask for technical debugging of OpenCart 3 (ocStore). I need a fixed budget for the result, not hourly payment. List of tasks 1. Fixing 500 error: A conflict occurs when updating modifiers (likely between system/seo_package.ocmod.xml and unixml.ocmod.xml). It is necessary to… Content Management Systems, PHP ∙ 16 hours 16 minutes back ∙ 34 proposals |
Development of a single project based on the refinement and integration of 4 scriptsHello. I need to combine 4 scripts from different authors into a single environment. The composition includes a forum, a video portal, an article portal, and a classifieds board. I will provide the scripts. Detailed specifications are in the attached files. Please think about… PHP, Web Programming ∙ 17 hours 44 minutes back ∙ 27 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
225 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 21 hours 10 minutes back ∙ 34 proposals |
Development of 2 SEO-oriented websites for selling spare parts (ATVs and special equipment)Development of Two Specialized Websites for Selling Spare PartsGeneral Information It is necessary to develop two specialized websites: Spare parts for ATVs, UTVs, SSVs, and other similar equipment. Spare parts for special equipment. Existing company website:… PHP, Web Programming ∙ 1 day 18 hours back ∙ 67 proposals |
Looking for a white-label solution for a betting company for rent. |