Jump to content

Block non us IP??


barkster

Recommended Posts

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 this

164/8 - Europe
165/8 - Asian (Singapore)
43/8, 60/7, 202/7, 210/7, and 218/7 - Asia
62/8, 80/7, 82/8, 193/8, 194/7, 212/7, 217/8 - Europe
200/7 - Latin America

Could I just go into cpanel/IP Block Manager and put in something like
164.
165.
43.
60.
etc...


Thanks
Link to comment
Share on other sites

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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.