Privoxy Easy to use tutorial

Source: Internet
Author: User
Tags first row


Directory
1 Privoxy Use
2 Privoxy Installation
3 Start Privoxy
4 Configuring the browser
5 Setting Privoxy
I estimate that eight adults read the Privoxy Handbook for the first time, only confused.
I have written two related tutorials, introduced Privoxy in the screen ads, video advertising usage, more specific. Here, a concise tutorial is generally written. The so-called "stand high, see far", once the overall structure of the Privoxy is confident, natural answers, do get a targeted access to the manual, rather than a head into the vast configuration items.
Privoxy Use #

Privoxy is a proxy software agent-Simply put, an intermediary that goes in and out of your computer's traffic. By it, we can control the request to go out and return the response. Unwanted requests – such as the address of the video ad, the address of the image ad, we can block it directly; unnecessary response content – such as text ads on the page, we can filter them out and not let them show.
Of course, it's just the most common and common use of Privoxy, Privoxy there are other uses, here and down.
Privoxy Installation #

Privoxy supports a number of platforms:
Windows and later versions (+, ME, Watts, XP, Vista, Windows 7 etc.), Gnu/linux (RedHat, SuSE, Debian, Fedora, Gentoo, Slackware and others), Mac OS X (10.4 and upwards on PPC and Intel processors), OS/2, Haiku, Dragonfly, FreeBSD, NetBSD, O Penbsd, Solaris, and various other flavors of Unix.
Installation of Windows platform since needless to say, download an EXE file all the way to click Next; Linux platforms can be installed mostly through warehouses.
Like Ubuntu:
sudo apt-get install Privoxy
Another example is OpenSUSE:
sudo zypper install Privoxy
It is also generally recommended that you use a warehouse installation.
Or if you really want to toss it, download the source code and compile the installation yourself.
Start privoxy#

After the installation of Privoxy, you need to start it, because the various systems under each platform are different, here is not a description, please see the manual.
OpenSUSE Press ALT + F1 to search for and open the service Manager, locate the Privoxy item, enable it, and start it, Privoxy will run in the form of a system service.
Configure Browser #

Most of the time, we may just need a browser to walk the Privoxy proxy, open the proxy settings for the browser, set the HTTP and SSL proxy to 127.0.0.1, and the port is 8118.
If you want to save trouble, you can also configure the System agent.
After the browser is configured, open the HTTP://P.P URL in the browser to see if the following is displayed:
This is Privoxy 3.0.21 on unknown (127.0.0.1), Port 8118, enabled
If so, the Privoxy is running properly and the browser is configured correctly.
Set privoxy#

When you are ready, you can start customizing our Privoxy.
Everything from config file to talk about.
Config file in various systems location, name may not be the same, such as Windows system, it is actually called Config.txt, under the OpenSUSE system, it is located in the directory is/etc/privoxy, this directory is a soft link, pointing to/var/lib/ Privoxy/etc.
But usually, we don't need to modify the config file here and let it be the default.
Here are two types of files:
Action file
Match-all.action
Default.action
User.action
Filter file
Default.filter
User.filter
Match-all.action, default.action, default.filter These files, do not recommend changes, because Privoxy upgrade will be overwritten. So write our configuration content to user.action and User.filter-that's why two files are called user.*.
Action File #

The

Action file defines the actions of the Privoxy, such as {+block}:
{+block{kills Chen San's Blog}
. zfanw.com
This sentence, the address of my web site, all zfanw.com request, will return 403 –privoxy directly returns a blocked prompt page, which is roughly as follows:
Your request for Http://www.zfanw.com/blog/was blocked. Block reason:. zfanw.com
Analyze the meaning of the code:
The first line, {+block} is a directive, block {} is written to block the reason, not write also can, the role is similar to the annotation.
the second line,. Zfanw.com, this is a URL to apply the above instructions, divided into two parts, a domain, a path,domain part of the support of wildcard characters, such as * 、?、 [0-9], [A-z];path part refers to the first/last part of the URL, Supports POSIX 1003.2 regular expressions, which are more flexible than the domain part. See the Handbook specifically.
Filter File #

The

Filter file defines the rules for filtering responses, such as:
Filter:blockbaiduad remove Baidu Promotion ads
S|

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.