How do I ban users/ISPs?
Re: How do I ban users/ISPs?
Posted:13 Jun 2008 (13:31 UTC)I'll answer part of this. You can ban users by going to yoursite/users/ and finding the user and then clicking the ban icon. This will save the user's account, but prevent them from logging in with that identity or email address. The real beauty of it is, that if they have cookies enabled, then they won't even be able to see your website until those cookies clear. They'll have to do that manually or wait a few years. For the clueless jerks who troll sites its a nice little additional punishment.
Re: How do I ban users/ISPs?
Posted:13 Jun 2008 (13:48 UTC)To ban by ISP is a bit more involved. First, you need the offending IP, for example, let's say it is 77.247.209.61
Then, you need to find out who owns that IP block. On a unix command line, enter, and see a giant pile of stuff come back.
You can see the block this ISP owns is
inetnum: 77.247.208.0 - 77.247.211.255
or the shorthand CIDR notation
route: 77.247.208.0/21
You can add the CIDR block to your path/to/bitweaver/.htaccess
or you can add it to your firewall with something like
Here is a google search for more fun...
Then, you need to find out who owns that IP block. On a unix command line, enter, and see a giant pile of stuff come back.
carme:~ spider$ whois 77.247.209.61
OrgName: RIPE Network Coordination Centre
OrgID: RIPE
Address: P.O. Box 10096
City: Amsterdam
StateProv:
PostalCode: 1001EB
Country: NL
ReferralServer: whois://whois.ripe.net:43
NetRange: 77.0.0.0 - 77.255.255.255
CIDR: 77.0.0.0/8
NetName: 77-RIPE
NetHandle: NET-77-0-0-0-1
Parent:
NetType: Allocated to RIPE NCC
NameServer: NS-PRI.RIPE.NET
NameServer: SEC1.APNIC.NET
NameServer: SEC3.APNIC.NET
NameServer: TINNIE.ARIN.NET
NameServer: NS.LACNIC.NET
NameServer: SUNIC.SUNET.SE
Comment: These addresses have been further assigned to users in
Comment: the RIPE NCC region. Contact information can be found in
Comment: the RIPE database at http://www.ripe.net/whois
RegDate: 2006-08-29
Updated: 2006-09-07
# ARIN WHOIS database, last updated 2008-06-12 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.
% This is the RIPE Whois query server #1.
% The objects are in RPSL format.
%
% Rights restricted by copyright.
% See http://www.ripe.net/db/copyright.html
% Note: This output has been filtered.
% To receive output for a database update, use the "-B" flag.
% Information related to '77.247.208.0 - 77.247.211.255'
inetnum: 77.247.208.0 - 77.247.211.255
netname: URAL-NET
descr: Chelyabinsk ISP. Telephony & Internet Service
country: RU
org: ORG-UL24-RIPE
admin-c: DS6326-RIPE
tech-c: DS6326-RIPE
tech-c: AGV20-RIPE
tech-c: OS520-RIPE
status: ASSIGNED PA
mnt-by: UNET-RU-MNT
mnt-lower: UNET-RU-MNT
mnt-domains: UNET-RU-MNT
mnt-routes: UNET-RU-MNT
source: RIPE # Filtered
organisation: ORG-UL24-RIPE
org-name: Ural-NET Ltd
org-type: LIR
address: TRUDA 105
address: 454091
address: CHELYABINSK
address: Russian Federation
phone: +7 351 2333381
fax-no: +7 351 2399110
e-mail: denis@ural-net.ru
admin-c: LY10-RIPE
admin-c: NL799-RIPE
admin-c: OS520-RIPE
admin-c: EVK10-RIPE
admin-c: AGV20-RIPE
mnt-ref: UNET-RU-MNT
mnt-ref: RIPE-NCC-HM-MNT
mnt-by: RIPE-NCC-HM-MNT
source: RIPE # Filtered
person: Denis Sadomskiy
address: Ural-net, Chelyabinsk 454000, Truda 105
e-mail: denis@x4.ru
phone: +7 351 2333381
nic-hdl: DS6326-RIPE
source: RIPE # Filtered
person: Oleg Simaev
address: 105, Truda str.
address: Chelabinsk,454080
address: Russia
phone: +7 351 270 6165
e-mail: Ural-Net@chel.surnet.ru
nic-hdl: OS520-RIPE
source: RIPE # Filtered
person: Alex G. Voronin
address: SIT ltd, str Vitebskaya 4, 423 A, chelyabinsk, Russia 454080
phone: +7 351 2 670 666
fax-no: +7 351 2 670 666
e-mail: alex@s-it.ru
nic-hdl: AGV20-RIPE
source: RIPE # Filtered
% Information related to '77.247.208.0/21AS43275'
route: 77.247.208.0/21
descr: Ural-NET INC.
origin: AS43275
mnt-by: UNET-RU-MNT
source: RIPE # Filtered
You can see the block this ISP owns is
inetnum: 77.247.208.0 - 77.247.211.255
or the shorthand CIDR notation
route: 77.247.208.0/21
You can add the CIDR block to your path/to/bitweaver/.htaccess
Deny From 77.247.208.0/21
or you can add it to your firewall with something like
iptables -I RH-Firewall-1-INPUT 3 -s 77.247.208.0/21 -j DROP
Here is a google search for more fun...
Page 1 of 1 1