eom

Comments

jboukes’s picture

Hi Chris,

The quick answer is: "only if you want it to". :)

Country ban can ban a region as "read only" or as "complete". A complete ban will wipe out the page for any IP attempting to access it, and that includes anonymous. In the Country Ban settings, you can set the message you would want the banned population to see (or even leave it blank, if you don't want them to see anything at all).

If you set the ban to "read only", then it denies all account access for that region. Anonymous viewers will the the website as normal. If you have it set so that anonymous individuals can post comments, they still will be able to do so. Country Ban works best in preventing spam when it is set to "read only", and the Drupal website is configured to disallow anonymous comments. By denying all account access and prohibiting anonymous comments, you'll find that spam from that region will simply disappear.

It is true this means that "honest users" from that region will also be unable to access their accounts. If it happens to be a region where you doubt you have much readership, however, it just might be worth it to set them to 'read only'.

chriscalip’s picture

Hi jboukes, Thanks for your reply.

jboukes’s picture

Status: Active » Closed (fixed)
kobee’s picture

Status: Closed (fixed) » Active

Hi,
Does the "complete" option block the super admin access too?

jboukes’s picture

Hi Kobee,

The complete ban does check to see if the user is "user #1" - the main admin that created the Drupal install - and let's them pass if so. Everyone else is locked out.

While this should work fine and was tested, I do encourage caution in doing a "complete ban" on your own country. The final solution if you somehow came to be locked out, is you could go into the database backend and disable the module from there to get back in. Renaming or deleting the module "countryban" folder would also break the lock, though the module should also be then disabled from the backend as well.

kobee’s picture

Hello John,

I'm just looking for doing a "complete ban" on my own country...
Ok, I saw in your code for the "User #1" but can you also make the "/user" page accessible too?
(in order to log in.. and without modify the directory name)

Thanks for this great module.

jboukes’s picture

Assigned: Unassigned » jboukes
Status: Active » Fixed

This is now included as of 1.4. A "complete ban" whites out the site for that country; however, /user/login is still available and is the only page visible to that set country.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.