• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Ban email domains?

Rho Delta

Well-known member
#1
Is there a way to ban email domains? Even with custom img captcha a few are getting through again. Is there a way to ban all .ru domains from registering? Everyone in my niche is American, I do not want anyone without an American email address registering.
 

Mike Edge

Well-known member
#3
If you want only American's on your site, why not just block all non-US traffic in your firewall. That would stop bots and spammers even reaching your site freeing up load and bandwidth from users you have no desire for in the 1st place.
 

Rho Delta

Well-known member
#5
If you want only American's on your site, why not just block all non-US traffic in your firewall. That would stop bots and spammers even reaching your site freeing up load and bandwidth from users you have no desire for in the 1st place.
This is an excellent idea, I just have absolutely no idea how to do this. Also we have some GIs in Afganistan that I would want to be able to post.
 

Mike Edge

Well-known member
#6
This is an excellent idea, I just have absolutely no idea how to do this. Also we have some GIs in Afganistan that I would want to be able to post.
Do you have root access? In CSF config find CC_ALLOW_FILTER

# An alternative to CC_ALLOW is to only allow access from the following
# countries but still filter based on the port and packets rules. All other
# connections are dropped

Put US and restart CSF. This will now block anyone on a non-US IP. As far as the GI's you can do 1 of 2 ideas. Either take there IP and put them in the IP IGNORE list, this would over ride any firewall block if on that IP or add Afganistan or whatever country the carrier is also to CC_ALLOW_FILTER