PDA

View Full Version : Block counrties



datapowerhost
12-26-09, 01:13 AM
Hello,

I would like the ability to block counties located on the ofac list. Can you add this in?

By law, US companies cannot conduct business with this listing:

http://www.ustreas.gov/offices/enforcement/ofac/programs/

If whmcs approves orders for these countries, we could be breaking the law.

vePortal
12-27-09, 12:43 AM
This would indeed be an extremely useful feature!

aXeR
12-27-09, 09:29 AM
Can you not get IP ranges assigned to these locations and block them by .htaccess ?

Daniel
12-27-09, 10:11 AM
http://www.blockacountry.com/ would work in the meantime

John
12-28-09, 11:31 AM
You could remove them from /includes/countries.php. This would force them to select a different country and Maxmind would block the order based on the distance between address and IP location.

mikelegg
09-12-11, 02:24 PM
You could remove them from /includes/countries.php. This would force them to select a different country and Maxmind would block the order based on the distance between address and IP location.

That is a very clever solution - thank you.

Bubka3
09-14-11, 03:23 AM
That is a very clever solution - thank you.
While indeed it is, this would still be a useful feature :-)

m8internet
09-14-11, 05:09 AM
As above, I have removed countries from the /includes/countries.php file
It doesn't guarantee an order from such a country, as the customer can simply use any other country (indeed I have already had one customer who used the wrong country)
However, cross-check the phone country code

m8internet
09-14-11, 03:19 PM
By law, US companies cannot conduct business with this listing:
http://www.ustreas.gov/offices/enforcement/ofac/programs/
Here is the list for those in the UK :
http://www.hm-treasury.gov.uk/fin_sanctions_currentindex.htm

SoftDux
09-19-11, 09:33 AM
An easier / better way is to use something like Config Server Firewall (or any other firewall of your choice) which already supports country blocking and then block those countries on the firewall instead. That would cut-down on spam originating fro those country's networks as well.