WordPress.org

Support

Support » Plugins and Hacks » BBQ: Block Bad Queries » [Resolved] Log file and Configuration

[Resolved] Log file and Configuration

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    @specialk

    Thanks! BBQ is kept as simple as possible so no log files, but you should be able to see all traffic and errors via your server’s access/error log files. Then to add a string, just open the plugin file and add whatever is necessary.

    jeff, thank you!
    re: “to add a string, just open the plugin file ” – In the PHP file, which exact part that I can add the string? do you have the sample? or detail steps? I do not want to mess the file. Thank you

    Plugin Author Jeff Starr

    @specialk

    There are three variables defined as arrays on lines 21-23. Once you have identified the string you would like to block, add the string like so:

    $request_uri_array = apply_filters( 'request_uri_items', array('old-string', 'new-string', 'another-new-string', 'etc') );

    The trick is adding the string to the correct array; for example, if the string should be blocked when included in the user-agent, then add to user_agent_items. Likewise for the other two arrays, which contain strings for the requested URI and query string.

    Jeff, thank you for quick Reponses/Guidance. I will try. thank!!!

    Jeff, thank you for quick reply and guidance.:) Thank you!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Log file and Configuration’ is closed to new replies.
Skip to toolbar