Skip to Àkóónú
WordPress.org

Yorùbá

  • Themes
  • Plugins
  • Àtìlẹ́yìn
  • Nípa
  • Ìwé Ìtónisónà
  • Egbé
  • Kàn síwa
  • Wà WordPress jáde
Wa WordPress jáde
WordPress.org

Plugin Directory

Blockary Ìtumọ̀ Yorùbá: – Access Firewall

  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé
  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé

Blockary Ìtumọ̀ Yorùbá: – Access Firewall

Láti ọwọ́ Michael
Ṣe ìgbàsílẹ̀
  • Àwọn àlàyé
  • Àwọn àgbéyẹ̀wò
  • Ìgbéwọlẹ̀
  • Ìdàgbàsókè
Ìrànlọ́wọ́

Àpèjúwe

Blockary blocks visitors by country and stops password guessing on the login page.

The country rule works as a block list or as an allow list. You pick the countries on the settings page. The plugin reads the country from the Cloudflare header or from a local copy of the free “IP to Country Lite” database from DB-IP. Visitors from the whitelist and from private networks always pass. Logged-in users pass by default. You can turn that off on the settings page. Administrators always pass.

The login protection counts failed logins per address and per username. An address that reaches the limit gets a temporary ban. The ban time grows with each ban, and a permanent ban follows after a number of temporary bans. The plugin can also lock a username, show the same error for a wrong username and a wrong password, hide usernames from visitors, and turn off XML-RPC.

The plugin loads as the first plugin. It decides a request without a login cookie before WordPress loads the other plugins. It decides a request with a login cookie as soon as WordPress can read that cookie. Blocked requests do not reach the theme. A log on the settings page shows the blocked requests, the failed logins, and the bans.

Load order

The plugin keeps itself first in the list of active plugins. WordPress then loads it before the other plugins, so a blocked request costs less and stays invisible to the other plugins. The plugin changes only the order of that list in the database. It writes no file for this and you do not have to set anything up.

Optional: the loader file

A loader file in the folder wp-content/mu-plugins is only useful when another plugin moves itself in front of Blockary. The plugin does not write that file itself. You download it on the settings page and copy it into the folder by hand, for example with SFTP. The settings page shows the exact path. The loader runs the decision only while the plugin is active. Without the plugin it does nothing. When you delete the plugin, delete the loader file too. When the settings page shows “Outdated” for the load order, download the file again and replace the copy.

Recovery

If a rule locks you out, add this line to wp-config.php:

define( 'BLOCKARY_DISABLE', true );

The plugin then blocks nothing until you remove the line.

External services

The plugin downloads the country database “IP to Country Lite” from DB-IP when you select the local database as the country source. The download runs once after you select that source and then once a month through WP-Cron. You can also start it on the settings page.

The request goes to https://download.db-ip.com/free/. The request carries only the name of the database file for the current month. It carries no data about your site or your visitors. The database is licensed under CC BY 4.0. The settings page shows the attribution link that the license requires.

Terms and privacy policy of DB-IP: https://db-ip.com/about and https://db-ip.com/privacy.php

The plugin sends no other request to an external service.

Ìgbéwọlẹ̀

  1. Upload the folder blockary to wp-content/plugins, or install the plugin from Plugins > Add New.
  2. Activate the plugin.
  3. Open Settings > Blockary.
  4. Add your own address to the IP whitelist.
  5. Pick the country mode and the countries.
  6. If your site runs behind Cloudflare or another proxy, add the proxy to the trusted proxies. Without that entry the plugin sees the proxy address for every visitor.

FAQ

Where does the country data come from?

The plugin reads the country from the Cloudflare header CF-IPCountry when the site runs behind Cloudflare. Without Cloudflare the plugin downloads the free “IP to Country Lite” database from DB-IP into wp-content/uploads/blockary and refreshes it once a month. See the section “External services”.

Does the plugin send data about my visitors?

No. The country lookup runs on your server. The plugin sends no visitor data to any service.

What does the plugin write outside its own folder?

The plugin writes only the country database into wp-content/uploads/blockary. It removes that folder and its settings, bans, and log on uninstall. In the database, the plugin moves itself to the first position in the list of active plugins. The optional loader file in wp-content/mu-plugins is a file that you copy by hand. The plugin never writes or deletes it.

I locked myself out. What now?

Add define( 'BLOCKARY_DISABLE', true ); to wp-config.php. The plugin then blocks nothing. Fix the rule on the settings page and remove the line again.

Does the firewall apply to logged-in users?

Not by default. A visitor with a valid login cookie passes the country rule and the bans. If your site has open registration, turn off the setting “Do not apply the firewall to logged-in users”. The country rule and the bans then also apply to logged-in users. Administrators always pass, so that you cannot lock yourself out of the settings page.

My code uses the filter blockary_should_block. What changed in version 1.1.0?

The plugin now decides a request without a login cookie before WordPress loads the other plugins. A callback in a normal plugin is not registered at that moment. Put the callback into a must-use plugin (a file in wp-content/mu-plugins).

Does the plugin work with a caching plugin?

Yes. The plugin decides before WordPress loads the other plugins. A page cache that serves files before WordPress starts, for example a web server cache, can serve a cached page to a blocked visitor.

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“Blockary Ìtumọ̀ Yorùbá: – Access Firewall” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa
  • Michael

Túmọ̀ “Blockary Ìtumọ̀ Yorùbá: – Access Firewall” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.1.0

  • The plugin keeps itself first in the list of active plugins. The firewall decides a request without a login cookie before WordPress loads the other plugins. The loader file is no longer needed for that.
  • New setting “Do not apply the firewall to logged-in users”. It is on by default, which is the behavior of version 1.0.0. When it is off, the country rule and the bans also apply to logged-in users. Administrators always pass.

1.0.0

  • First version. Country rule with block list and allow list, login protection with bans, username lock, hidden usernames, XML-RPC switch, and a log.

Àkójọpọ̀ Meta

  • Ẹ̀yà 1.1.0
  • Ìgbàgbọ́hùn tó kẹ́yìn ọ̀sẹ̀ 2 sẹ́yìn
  • Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ Tó kéré sí 10
  • Ẹ̀yà WordPress 6.4 tàbí ju bẹ́ẹ̀ lọ
  • Dánwò dé 7.1.3
  • Ẹ̀yà PHP 8.1 tàbí ju bẹ́ẹ̀ lọ
  • Èdè
    English (US)
  • Àwọn àmì
    Brute Forcecountry blockfirewalllogin protectionsecurity
  • Ìwòye Tó Péye

Àwọn ìbò

Kò tíì sí ohun táwọn èèyàn sọ nípa ẹ̀.

Your review

Wo gbogbo àwọn àgbéyẹ̀wò

Àwọn Olùkópa

  • Michael

Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

Wo àpéjọ ìrànlọ́wọ́

  • Nípa Wa
  • Iroyin
  • Hosting
  • Ìpamọ́
  • Àfihàn
  • Themes
  • Plugins
  • Patterns
  • Kẹ́kọ̀ọ́
  • Atilẹyin
  • Àwọn Developer
  • WordPress.tv ↗
  • Kópa
  • Àwọn ìṣẹ̀lẹ̀
  • Ṣètọrẹ ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

Yorùbá

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Ṣabẹwo sí àkáǹtì X (Twitter tẹ́lẹ̀) wa
  • Ṣàbẹ̀wò àkáǹtì Bluesky wa
  • Lọ sí àkáǹtì Mastodon wa
  • Ṣàbẹ̀wò àkáǹtì Threads wa
  • Ṣàbẹ̀wò ojú ìwé Facebook wa
  • Ṣàbẹ̀wò àkáǹtì Instagram wa
  • Ṣàbẹ̀wò àkáǹtì LinkedIn wa
  • Ṣàbẹ̀wò àkáǹtì TikTok wa
  • Ṣàbẹ̀wò YouTube channel wa
  • Ṣàbẹ̀wò àkáǹtì Tumblr wa
Code jẹ́ Ewì.