i2-Services, Inc. Forums

Full Version: Suggestion - Block users with IP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a cpl of ppl who constantly try to register uisng all sorts of email addresses. but all orginating from one IP addy.

Would it be possible to add a "Banned/blocked" type system where i can enter an IP address (and add to it).

This is then checked against any user login?

GWP Wrote:
I have a cpl of ppl who constantly try to register uisng all sorts of email addresses. but all orginating from one IP addy.

Would it be possible to add a "Banned/blocked" type system where i can enter an IP address (and add to it).

This is then checked against any user login?


Cool If you have access to your htaccess you can block the ip addresses by adding the following line "deny from IP" where IP is the ip address. If its a range of IP's you can leave off the last and or second last numbers or make it a domain.

Example below

order deny,allow
deny from 99.194.49.
deny from 99.11.85.0
deny from .junkdomain.com
allow from all

The above will deny from 99.194.49. etc & from 99.11.85.0 and anything from junkdomain.com then it will allow from anyone else.

regards
DaveP

Dave is right on.

We will look into getting IP bans via the admin in the future.
Thanks for the replies.

@ DaveP. Yes, i have used htaccess before. but i am lazy and would rather click a button then have to edit my htaccess file Smile , also it would be easier to block/unblock from a list via admin panel than keep having to go through the htaccess
But thanks for the tip and example.

@ Jason. That would be great thanks.
Reference URL's