Bobcares

Cloudflare Geolocation Blocking | About

by | Feb 5, 2024

Learn more about Cloudflare Geolocation Blocking. Our Cloudflare Support team is here to help you with your questions and concerns.

Cloudflare Geolocation Blocking | About

Cloudflare Geolocation blocking is a feature offered by Cloudflare. It allows website owners to restrict or control access to their websites based on the geographical location of the users.

Cloudflare Geolocation Blocking | About

Let’s take a look at how this feature works:

  1. When a user tries to access a website protected by Cloudflare, Cloudflare first checks the user’s geographical location based on their IP address.
  2. Then, Cloudflare compares the user’s location with the blocking rules set up by the website owner. These rules specify which countries or regions should be allowed or denied access to the website.
  3. Based on the comparison, Cloudflare either allows or blocks the user’s access to the website accordingly.

Here are some of the reasons why website owners prefer to use geolocation blocking:

  • Sometimes, websites need to adhere to specific legal requirements or regulations that indicate which countries or regions can access certain types of content or services. Geolocation blocking helps enforce these restrictions.
  • Geolocation blocking can also be used as a security measure to prevent access from known malicious or high-risk regions where a website might be more vulnerable to attacks.
  • Website owners may want to restrict access to their content based on geographical considerations, like licensing agreements.
  • By blocking traffic from certain regions, website owners can optimize their server resources and ensure better performance for users in regions that are more relevant to their target audience.

How to set up Geolocation blocking with Cloudflare

  1. First, sign up for Cloudflare and add our website to our Cloudflare account. This involves updating our domain’s nameservers to point to Cloudflare’s nameservers.
  2. Then, log in to the Cloudflare account and head to the Firewall settings for our domain.
  3. Next, create a new firewall rule specifically for geolocation blocking in the Firewall settings. This rule will define the conditions under which traffic should be blocked based on the user’s geographical location.
  4. Now, set up a condition that checks the visitor’s country or region in the rule.
  5. After setting the geolocation condition, specify the action to take if the condition is met. This action is usually “Block” to deny access to users from specific countries or regions.
  6. Now, we have to specify the countries or regions we want to block.
  7. Then, save the rule settings.
  8. Before deploying the rule to the live website, it’s a good idea to test it to ensure it’s working as expected.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In brief, our Support Experts demonstrated how to configure Cloudflare Geolocation Blocking.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF