Topic: banning IP address ranges

Is it possible (or can it be made possible) to enter a network mask instead of the IP address range? It would be so much easier. E.g. when you have an ip range from e.g. 118.112.0.0 - 118.119.255.255 enter 118.112.0.0/ 13 or, as another option, have two text boxes that take the start and the end of the address range instead of having to enter a lot of IP ranges like: 118.112 118.113 118.114 etc

Or is there any other easy way?

I apologize if someone finds him/herself within the range of my example.

Sometimes too much to drink is barely enough.
Mark Twain

Re: banning IP address ranges

have you tried doing it via .htaccess
there are good tutorials if you google it...

Re: banning IP address ranges

thanks, no, I haven't tried .htaccess. I thought banning IP addresses/ranges is already a feature of PunBB and I was hoping for improvement. .htaccess is a possibility.

Thanks again.

Sometimes too much to drink is barely enough.
Mark Twain

Re: banning IP address ranges

FYI this is what mine looks like....

# BEGIN PunBB

<IfModule mod_rewrite.c>
# MultiViews interfers with proper rewriting
Options -MultiViews

RewriteEngine On

# Uncomment and properly set the RewriteBase if the rewrite rules are not working properly
#RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . rewrite.php [L]
</IfModule>

# END PunBB
## USER IP BANNING
<Limit GET POST>
 order allow,deny
 deny from 218.6.15.36
 deny from 208.53
 deny from 93.174.93.222
 deny from 64.214 
 deny from 92.241 
 deny from 84.19
 deny from 66.90
 deny from 84.22
 deny from 87.118
 allow from all
</Limit>

Re: banning IP address ranges

Thanks.

I just checked it, within .htaccess I can use the netmask too if I wanted to block the range from 118.112.0.0 - 118.119.255.255

deny from 118.112.0.0/ 13
Sometimes too much to drink is barely enough.
Mark Twain