Page 1 of 1
Block IP's
Posted: Fri Oct 28, 2005 5:22 pm
by Lowestman
I was wondering, how can I block IP address of a person making vulgar comments? I know that the IP is collected in the database.
Re: Block IP's
Posted: Sun Oct 30, 2005 12:47 pm
by garvinhicking
IP-Blocking should occur on a low level basis, preferrably via .htaccess
Does your server have mod_rewrite enabled?
Blocking certain IP addresses nowadays makes little sense because most Spammers and Hackers can change IP addresses at will, this is the reason why there is no setting for that in the spamblock plugin.
If you are running mdo_rewrite, add this in your .htaccess:
Another way would be to edit your serendipty_config_local.inc.php file and add this code at the end:
Code: Select all
if ($_SERVER['REMOTE_ADDR'] == '192.168.0.1') {
die('Access denied');
}
(if you cannot edit the contents of your serendipty_config_local.inc.php file, you can insert this codepiece also in your index.php file at the top...)
Regards,
Garvin