TBDev Forum
Programming board
Main Page Forum Rules Privacy Policy Members Contact Us
Welcome Guest (Login | Register)
TBDev Forum TBDev.net - Help General Support mysql or .htaccess?

mysql or .htaccess?

2008-11-19 06:29:00
Group: Member
Posts: 847
Topics participated: 448
Topics started: 80
First post: 2008-01-26 11:33:00
Last post: 2009-01-01 20:14:00
Is it good to ban from site by inserting IPs in mysql.
or
Is it good to ban IPs from .htaccess? and just disable the account.

Thanks
 
2008-11-19 08:25:00
Group: Member
Posts: 221
Topics participated: 129
Topics started: 1
First post: 2006-05-05 18:07:00
Last post: 2009-01-02 17:34:00
Depends how many you have. Using htaccess with hundreds of bans is not going to be good, as every apache instance will read and parse the htaccess file. However, I prefer never to waste the time connecting to the DB for someone who is IP banned.

You can store banned IPs as files and simply run a file_exists() check if you're not dealing with thousands of IPs, or add the IPs to /etc/hosts.deny or iptables.
 
2008-11-19 11:12:00
Group: Member
Posts: 51
Topics participated: 24
Topics started: 14
First post: 2008-09-18 14:30:00
Last post: 2008-12-14 18:06:00
ENGLISH ONLY


how many times i have to say this to you?
for this you receive your 3rd warning now,this results in removing posting rights for 7 days!
 
2008-11-19 00:26:00
Group: Member
Posts: 847
Topics participated: 448
Topics started: 80
First post: 2008-01-26 11:33:00
Last post: 2009-01-01 20:14:00
@ system i have over 100 (i think over 200 ) IPs including proxy sites

so... ?
 

Similar threads

Topic Posts Last post
.htaccess 1 2007-03-25 10:29:00
How do i do this with htaccess 4 2008-12-11 11:55:00
.htaccess problem 5 2007-12-26 19:46:00
htaccess with short urls 1 2006-11-01 05:39:00
mysql help... 4 2007-03-29 09:55:00