Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: hani_l on August 20, 2014, 06:09:18 PM

Title: multiple IP addresses in a ban list
Post by: hani_l on August 20, 2014, 06:09:18 PM
Hello everyone, what I am asking is pretty basic stuff but I can not figure it out. I need to ban 10-15 IP addresses and they are not close to each other (I mean I can not use ranges). do I have to create 15 separate band list or there is a way to add multiple IP addresses to one ban list something like (x.x.x.x;y.y.y.y) or (x.x.x.x,y.y.y.y)  I did try both but they don't work. is there any other way to do this ?
Title: Re: multiple IP addresses in a ban list
Post by: Ninja ZX-10RR on August 20, 2014, 06:16:20 PM
Hi and welcome to SMF! :D

I suggest you to take a look at this, I have just updated it: http://www.simplemachines.org/community/index.php?topic=524146.0 ;)
Title: Re: multiple IP addresses in a ban list
Post by: hani_l on August 20, 2014, 07:35:54 PM
thanks man, that helped a lot (if I can get write permissions on that directory this will be the best solution)
Title: Re: multiple IP addresses in a ban list
Post by: Ninja ZX-10RR on August 20, 2014, 07:44:53 PM
You're welcome :D anyway the .htaccess file should be placed in your root folder in order to make it work properly, especially if your forum folder is not in the root but in a subfolder.
Title: Re: multiple IP addresses in a ban list
Post by: byproduct on August 21, 2014, 07:06:54 AM
htaccess can be really handy

i tend to use htaccess 2 & 3 levels deep

but it can be a hazard if you mess up

and if you get to liking it to much, it can bog down ya site

like a 4m htaccess blocking every non-us CIDR lol
real pain in the neck!










Title: Re: multiple IP addresses in a ban list
Post by: Ninja ZX-10RR on August 21, 2014, 07:11:35 AM
Agreed. Always be careful while using CIDR notations as you could ban *LOTS* of computers in a second by mistake >_<