+ Post New Thread
Results 1 to 2 of 2

Thread: How to whitelist an IP in ZBBlock software

  1. #1
    Join Date
    Mar 2013

    How to whitelist an IP in ZBBlock software

    ZB Block software is great opensource script to prevent malicious visitors (bad bots, harvesters, hackers..) to any website.

    UPDATE: zbblock may be outdated, check zbblock alternative https://cidram.github.io

    After installing ZB Block, one should monitor killed_log.txt so he make sure no proper visitors are blocked.

    How to whitelist an IP in ZB Block not to be forbidden 403 or blocked 503 ?

    Here is the solution that worked:

    1. browse killed_log.txt and find log line where is blocked IP which you want to whitelist
    2. in the log message, you can see the reason for block and an code in the brackets, example: UA-139.0
    3. open file customsig.inc

    paste following line after line: "// *Place your custom signatures below this line."

    if(inmatch($whyblockout,'(BLOCKINGCODE)','') && $ax==1 && lmatch($address,'IPTOWHITELISTHERE','')){$ax -= 1; $whyblockout .= 'Bypass for my client. (Cust-BYP-Myclient-01). ';}

    i think that is universal rule to bypass some zbblock rule for single IP. One need to edit only two phrasses:
    BLOCKINGCODE - in my case was : UA-139.0
    IPTOWHITELISTHERE - add IP to be whitelisted

    then remove IP that is being whitelisted from zbblock blocklists. I think it is this one: ippbdb.txt
    i used following command in zbblock directory to find files where IP was added:
    grep -Ril "IP" .

    In case one want to bypass some zbblock rule entrelly for ALL IPs, not just one... copy that rule from signatures.inc file to customsig.inc and edit this part of line:
    "$ax += inmatch"
    to become
    "$ax -= inmatch"
    (in customsig.inc file)
    that worked for me to bypass rule permanently

  2. #2

    Is this useful / helpfull? Yes | No
    I was just having this issue myself with my blog. Thanks for walking through it. I will have to keep this in mind next time.

+ Post New Thread

Similar Threads

  1. Looking for a software for work.
    By laurenashley in forum Computers & Technology
    Replies: 4
    Last Post: 05-06-2019, 10:06 PM
  2. Internal server error 500 (zbblock)
    By Fli in forum PHP, MySQL Forum
    Replies: 0
    Last Post: 02-17-2017, 02:46 PM
  3. How to install zbblock (tutorial)
    By Fli in forum vBulletin
    Replies: 0
    Last Post: 02-14-2017, 08:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
 Protected by : ZB BLOCK  &  StopForumSpam