![]() |
Blocking certain countries / IP ranges......
What is the best method for blocking certain countries from accessing your sites? Thanks!
|
Quote:
|
|
Bump for you.
|
Are you looking to block at a firewall or via .htaccess?
Via .htaccess you can add: <Limit GET HEAD POST> order allow,deny deny from xxx.xxx.xxx.xxx deny from xxx.xxx.xxx deny from xxx.xxx deny from xxx allow from all </LIMIT> To block a specific IP add the whole IP to the deny line. To block a range use a partial IP address. |
Quote:
Code:
include("/other/company/ip_lookup_code.php"); |
Mod_GeoIP and Maxmind's database. The free one is good, the paid versions are obviously better
|
Everyone so far.... thank you for the information. :)
|
ya mod_geoip works wonders
|
Damn a business thread! Thanks for the info, esp the scripting.
|
Quote:
|
All times are GMT -7. The time now is 08:13 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123