coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: dke on October 22, 2006, 01:10:47 AM

Title: How to ban an entire ip range through mysql database
Post by: dke on October 22, 2006, 01:10:47 AM
Hi all,

i find it easyer to just manually edit the database for coppermine, then to use the gui for some stuff, like banning. But i havent figured out how to ban entire ip ranges, id have to create 255 rows and put example "212.145.232.1" in the first and then go to 2,3,4,5,6,7 etc.. is there a way to just type "1.2.3.1-1.2.3.255" in one single key?

thanks in advance!
Title: Re: How to ban an entire ip range through mysql database
Post by: Nibbler on October 22, 2006, 01:26:37 AM
You can't ban IP ranges via the database. Ban via .htaccess or at the firewall level instead.
Title: Re: How to ban an entire ip range through mysql database
Post by: dke on October 22, 2006, 01:48:37 AM
alright, thanks for the info