Request: IP Block (Class A/B/C/D)

Creating and modifying plugins.
Post Reply
Loopy
Regular
Posts: 5
Joined: Sun Feb 04, 2007 2:24 pm
Location: London, UK
Contact:

Request: IP Block (Class A/B/C/D)

Post by Loopy »

I'd like to request, if possible, an IP Block plugin. I'm not talking about comments, I'm talking about access.

I have a list of IP addresses of people who persistently spam, or try to hack my servers. I'd like to be able to block them entirely from my blog. I'd also like to block at the class level (e.g. 192.168.0.XXX for example, or 192.168.XXX.XXX). Blocking would result in them getting either a "Access Denied" error on the screen, or would pop up in an authentication window (as in the HTTP 403 Forbidden code) -- this would allow the author to continue blogging, even though the IP address they're using has been blocked.

Loopy
abdussamad
Regular
Posts: 117
Joined: Fri Apr 21, 2006 10:11 pm
Location: Karachi, Pakistan
Contact:

Post by abdussamad »

If your using cpanel you can do that with the ip deny manager.
Loopy
Regular
Posts: 5
Joined: Sun Feb 04, 2007 2:24 pm
Location: London, UK
Contact:

Post by Loopy »

Problem is I can't access cpanel all the time, and what about people who do not use cpanel?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Blocking based on IPs should best be done at apache level, not at application level.

Thus, editing the .htaccess file to block/deny IP ranges is the best way to go, without the interaction of Serendipity - if s9y would block a request, it would first be loaded completely, but when apache does the blocking, no traffic and CPU time must be spent for s9y.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Loopy
Regular
Posts: 5
Joined: Sun Feb 04, 2007 2:24 pm
Location: London, UK
Contact:

Post by Loopy »

Okay, thanks for the advise. Not the solution I was hoping for, but it will have to do.
Post Reply