Networking

如何查看 Privoxy 阻止了哪些 URL

  • September 16, 2013

我想查看 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 的記錄?

根據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

啟用debug1024 應該會給你你想要的。

引用自:https://unix.stackexchange.com/questions/90843