PrivoxyによってブロックされたURLを確認する方法

PrivoxyによってブロックされたURLを確認する方法

PrivoxyでブロックしたURLのログを見たいのですが、どこにも見つかりません。

私の設定ファイル()/usr/local/var/log/privoxy/logfileの関連行は次のとおりです。

confdir /usr/local/etc/privoxy
logdir /usr/local/var/log/privoxy
logfile logfile

ログファイルが/usr/local/var/log/privoxy/logfile空です。

ブロックされたURLは他のファイルに記録されていますか?または、ブロックされたURLのロギングを有効にする方法は?

答え1

~によるとhttp://www.privoxy.org/user-manual/config.html#LOGDIR、ログファイルはになければなりません/var/log/privoxy/usr/local/var/log/privoxy/

ログファイルにキャプチャされた詳細は、デバッグオプションによって異なります。

  debug     1 # Log the destination for each request Privoxy let through. See also debug 1024.
  debug     2 # show each connection status
  debug     4 # show I/O status
  debug     8 # show header parsing
  debug    16 # log all data written to the network
  debug    32 # debug force feature
  debug    64 # debug regular expression filters
  debug   128 # debug redirects
  debug   256 # debug GIF de-animation
  debug   512 # Common Log Format
  debug  1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
  debug  2048 # CGI user interface
  debug  4096 # Startup banner and warnings.
  debug  8192 # Non-fatal errors
  debug 32768 # log all data read from the network
  debug 65536 # Log the applying actions

1024を有効にすると、debug必要な操作を実行できます。

関連情報