barkster Posted October 2, 2006 Share Posted October 2, 2006 I know this isn't as easy as I would think but there has to be some solution out there?? Even if it isn't perfect. How can I block on US(Arin) IP's on a linux server? I found this164/8 - Europe165/8 - Asian (Singapore) 43/8, 60/7, 202/7, 210/7, and 218/7 - Asia62/8, 80/7, 82/8, 193/8, 194/7, 212/7, 217/8 - Europe200/7 - Latin America Could I just go into cpanel/IP Block Manager and put in something like 164.165.43.60.etc...Thanks Quote Link to comment https://forums.phpfreaks.com/topic/22785-block-non-us-ip/ Share on other sites More sharing options...
printf Posted October 2, 2006 Share Posted October 2, 2006 Why not use a IP database and plug it into the C API for Apache and then you can be sure to block all visitors that you do not want. There is many PHP, Perl and server based examples if you google for it, you should find what you need. It would be better than having a very big filter list that Apache has to run through with each request!What I do, is have a IP database hooked into the C API of Apache, then when I get match it gets added to throttle system if they are under request limit control, or moved to the security filter that does not even listen to their request! If you want simple IP database tell me and I will give you one, with the scripts to use it!me! Quote Link to comment https://forums.phpfreaks.com/topic/22785-block-non-us-ip/#findComment-102616 Share on other sites More sharing options...
barkster Posted October 2, 2006 Author Share Posted October 2, 2006 I wouldn't mind looking at it, you can pm me for some reason it won't allow me. Quote Link to comment https://forums.phpfreaks.com/topic/22785-block-non-us-ip/#findComment-102628 Share on other sites More sharing options...
ober Posted October 2, 2006 Share Posted October 2, 2006 Please use email... PMs are disabled for normal users. Quote Link to comment https://forums.phpfreaks.com/topic/22785-block-non-us-ip/#findComment-102654 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.