MyBB Community Forums

Full Version: Ban IP addresses by range
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How would I ban these:
46.17.96.0-46.17.99.255
174.132.0.0-174.133.255.255
50.16.0.0-50.19.255.255

To ban these in IP Deny Manager of cPanel I would just put them in as shown above. Can I do the same in myBB? If I can’t enter these ranges as show above then please give examples so I can see how they should be entered. Thank you for your help.
not sure if it is directly possible without using the plugins ...
(eg. block-ip , Fassim Anti Forum Spam , Stopforumspam , ...)

cloudflare security may be used . htaccess can also be used for disallowing IP address ranges (eg.)

The only way I can see to ban the ranges I asked about is to use more than one entry.

To ban:
46.17.96.0-46.17.99.255
I add these two entries:
46.17.96.*
46.17.99.*

To ban:
174.132.0.0-174.133.255.255
I add these two entries:
174.132.*
174.133.*

To ban:
50.16.0.0-50.19.255.255
I add these two entries:
50.16.*
50.19.*

If anyone knows how to do these ranges each with a single entry please let me know.
(2011-10-25, 04:46 PM)Puppyite Wrote: [ -> ]The only way I can see to ban the ranges I asked about is to use more than one entry.

To ban:
46.17.96.0-46.17.99.255
I add these two entries:
46.17.96.*
46.17.99.*

46.17.96.0-46.17.99.255 would need
46.17.96.*
46.17.97.*
46.17.98.*
46.17.99.*

This isn't a new discussion, it's been discussed here before. But it's a lot more efficient to do the blocking at the server level, in .htaccess.
I Think you can do it but you have to copy the ip into the "Ban IP" Area of the Moderator Control Panel.
(2011-10-25, 06:01 PM)Rukbat Wrote: [ -> ]To ban:
46.17.96.0-46.17.99.255
would need
46.17.96.*
46.17.97.*
46.17.98.*
46.17.99.*

My bad, thanks.

Quote:This isn't a new discussion, it's been discussed here before.

I expect so, probably will be again.

Quote:But it's a lot more efficient to do the blocking at the server level, in .htaccess.

I like doing this with AdminCP because it displays the last visit from the IP.

If I use .htaccess can I put the following at the end of the file like so:

deny from 46.17.96.0

I don't know what I would have to put to block the range I gave.
I'm not an .htaccess guru, but I think it would be 46.17.96/22
(2011-10-25, 10:08 PM)Rukbat Wrote: [ -> ]I'm not an .htaccess guru, but I think it would be 46.17.96/22

Me neither. Confused I just poke around until I find somthing that works.

Normally I would enter a range of addresses in IP Deny Manager and it converts it to something like what you gave. Unfortunately wih my host IP Deny Manager only works with my main web site, my forum is an add-on domain so no joy there.

Have you had success banning IP ranges using the code I gave for .htaccess?
won't work on impossible fail on on my database blocked stranger weird muplite accounts databes I am investiage it ip address I banned for ip address not joy serious! I am find out on suspect stop forum spammer, I thinks fail server modication not enough update I guess update I expect difficult!
Thank you for that helpful reply. Suggest you try another translator, I suspect yours is borked.
Pages: 1 2