BAD BEHAVIOR Script

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

BAD BEHAVIOR Script

Post by update »

Hello all,
is there a possibility to exclude an array of IPs which then won't be handled by Bad Behavior (i.e. would not be blocked)?
This would come in handy for those who cannot install another browser than IE due to internal IT guidelines.
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: BAD BEHAVIOR Script

Post by update »

I have found out that you can install a whitelist.ini to exclude IPs from being treated by BadBehaviour. But it doesn't seem to work. Can anybody confirm this?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: BAD BEHAVIOR Script

Post by flip-flop »

In my test version r420 it is working well.

Example whitelist file in: include/inc_ext/bad-behavior/whitelist.ini

Code: Select all

; Inappropriate whitelisting WILL expose you to spam, or cause Bad Behavior
; to stop functioning entirely! DO NOT WHITELIST unless you are 100% CERTAIN
; that you should.

; IP address ranges use the CIDR format.

[ip]
; Digg whitelisted as of 2.0.12
ip[] = "64.191.203.34"
ip[] = "208.67.217.130"

; RFC 1918 addresses
ip[] = "10.0.0.0/8"
ip[] = "172.16.0.0/12"
ip[] = "192.168.0.0/16"

; User agents are matched by exact match only.

[useragent]
; This is an example; you should remove it
useragent[] = "Mozilla/4.0 (It's me, let me in)"

; URLs are matched from the first / after the server name up to, but not
; including, the ? (if any). The URL to be whitelisted is a URL on YOUR site.

[url]
url[] = "/example.php"
url[] = "/openid/server"
t first I had misunderstood the setting for "IP range". -> "RFC 1918 addresses".

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply