Can vBulletin natively block registrations from specified Countries?
Announcement
Collapse
No announcement yet.
Block registration from specific Countries
Collapse
X
-
Not countries per se but you can block IPs from a country in AdminCP > Settings > Options > User Moderation. In vB5, it's called User Banning.
But it's better to block at the server level. You can do that by blocking IPs using htaccess:
Control your site access by allowing or blocking visitors from specific countries. Our article will show you how to do it!
Or if you're using Cloudflare, you can block or issue a challenge to a user from a specific country by setting a rule in Security > WAF > Custom rules. You don't have to specify IPs, you just have to select the Country field and type the desired value.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
-
We are running Apache v2.4.65 on our server.
I downloaded the IPv4 Apache 2.4 .htaccess deny file for the Russian Federation. It has:
I've omitted the content between the first/last entry; the list is HUGE!Code:<RequireAll> Require all granted Require not ip 2.16.20.0/23 . . . Require not ip 217.199.254.0/24 </RequireAll>
Our .htaccess file has this:
Do I add the new content before or after the existing content? Does it matter?Code:# Begin Bad Bot Blocking BrowserMatchNoCase SkimBot/1.0 bad_bot BrowserMatchNoCase Mail.Ru/1.0 bad_bot BrowserMatchNoCase Mail.RU/2.0 bad_bot BrowserMatchNoCase Mail.RU_Bot/2.0 bad_bot BrowserMatchNoCase OmniExplorer_Bot/6.11.1 bad_bot BrowserMatchNoCase omniexplorer_bot bad_bot BrowserMatchNoCase Baiduspider bad_bot BrowserMatchNoCase Baiduspider/2.0 bad_bot BrowserMatchNoCase yandex bad_bot BrowserMatchNoCase yandeximages bad_bot BrowserMatchNoCase Spinn3r bad_bot BrowserMatchNoCase sogou bad_bot BrowserMatchNoCase Sogouwebspider/3.0 bad_bot BrowserMatchNoCase Sogouwebspider/4.0 bad_bot BrowserMatchNoCase sosospider+ bad_bot BrowserMatchNoCase jikespider bad_bot BrowserMatchNoCase ia_archiver bad_bot BrowserMatchNoCase PaperLiBot bad_bot BrowserMatchNoCase ahrefsbot bad_bot BrowserMatchNoCase ahrefsbot/1.0 bad_bot BrowserMatchNoCase SiteBot/0.1 bad_bot BrowserMatchNoCase DNS-Digger/1.0 bad_bot BrowserMatchNoCase DNS-Digger-Explorer/1.0 bad_bot BrowserMatchNoCase boardreader bad_bot BrowserMatchNoCase radian6 bad_bot BrowserMatchNoCase R6_FeedFetcher bad_bot BrowserMatchNoCase R6_CommentReader bad_bot BrowserMatchNoCase ScoutJet bad_bot BrowserMatchNoCase ezooms bad_bot BrowserMatchNoCase CC-rget/5.818 bad_bot BrowserMatchNoCase libwww-perl/5.813 bad_bot BrowserMatchNoCase magpie-crawler 1.1 bad_bot BrowserMatchNoCase jakarta bad_bot BrowserMatchNoCase discobot/1.0 bad_bot BrowserMatchNoCase MJ12bot bad_bot BrowserMatchNoCase MJ12bot/v1.2.0 bad_bot BrowserMatchNoCase MJ12bot/v1.2.5 bad_bot BrowserMatchNoCase SemrushBot/0.9 bad_bot BrowserMatchNoCase MLBot bad_bot BrowserMatchNoCase butterfly bad_bot BrowserMatchNoCase SeznamBot/3.0 bad_bot BrowserMatchNoCase HuaweiSymantecSpider bad_bot BrowserMatchNoCase Exabot/2.0 bad_bot BrowserMatchNoCase netseer/0.1 bad_bot BrowserMatchNoCase NetSeer crawler/2.0 bad_bot BrowserMatchNoCase NetSeer/Nutch-0.9 bad_bot BrowserMatchNoCase psbot/0.1 bad_bot BrowserMatchNoCase Moreoverbot/x.00 bad_bot BrowserMatchNoCase moreoverbot/5.0 bad_bot BrowserMatchNoCase Jakarta Commons-HttpClient/3.0 bad_bot BrowserMatchNoCase SocialSpider-Finder/0.2 bad_bot BrowserMatchNoCase MaxPointCrawler/Nutch-1.1 bad_bot BrowserMatchNoCase willow bad_bot BrowserMatchNoCase Vagabondo bad_bot BrowserMatchNoCase Vagabondo/3.0 bad_bot BrowserMatchNoCase Bilbo bad_bot BrowserMatchNoCase Exabot/3.0 bad_bot BrowserMatchNoCase Exabot/3.0/BiggerBetter bad_bot BrowserMatchNoCase Exabot-Thumbnails bat_bot BrowserMatchNoCase Exabot-Images/3.0 bad_bot Order Deny,Allow Deny from env=bad_bot # End Bad Bot Blocking
Added:
I figured it out. I'm not going to block the entire Country, just identified IPv4 ranges. I've added two at this time. I have seen a significant increase in new registrations from 'this country', and none of them are good actors. I know it from experience. The email addresses used in each of the new registrations contains 'many periods'. Which is why I inquired about a MOD to address that; too many periods in registering email address.The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
-
Well I just received a new registration notification, and the IP address is within one of the two IP ranges I have in our .htaccess file. Why?
Added:
Well, I 'think' I know why. The .htaccess file I should have added the block section to is the one in our root (public_html) directory. I've removed the section I added to the .htaccess file that precedes that directory, and added it to the .htaccess file in the root (public_html) directory.
Now I wait to see if no more new registrations from the two blocked CIDRs occurs.The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
Latest Posts
Collapse
-
Reply to some ideas for new modsin Chit Chatby desmomax
I finally created a mod that allows you to add an icon to each post with options for sharing on other platforms. I honestly thought it was absurd that...
Today, 03:59 AM -
by flohseHi Glenn, what do you think about adding "Like Counts" similar to "Like Counts on Postbit and Profile" (when this mod is in use) in...Yesterday, 11:28 PM
-
Reply to push notification prompt?by desmomaxhy glenn
have you thought about this?Yesterday, 05:44 AM

Comment