Coder Social home page Coder Social logo

ureuerae / libprivoxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomtdev/libprivoxy

0.0 1.0 0.0 2.54 MB

Use Privoxy as library.

License: GNU General Public License v2.0

C++ 0.53% C 53.94% Makefile 0.34% HTML 29.23% Roff 3.25% CSS 0.25% Shell 6.27% Perl 5.41% Prolog 0.75% Awk 0.02%

libprivoxy's Introduction

Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks.

Many people want to integrate Privoxy into their own projects, I made some changes to the Privoxy codes to compiled into a DLL or static library, so that you can better integrate it into their own projects.

Base on work from:
Privoxy: https://www.privoxy.org/ (based on its latest version 3.0.28)
LibPrivoxy: https://github.com/tarolabs/LibPrivoxy
DNS query: https://www.binarytides.com/dns-query-code-in-c-with-winsock/

Develop environment: Visual Studio 2017

License: GNU GENERAL PUBLIC LICENSE Version 2

Author: Shiyu Tang <shiyutang#gmail.com>

Notice: Important changes to original Privoxy:

  1. Use custom DNS servers

You can set DNS servers in config file to use specified DNS servers (of example, 8.8.8.8 and/or 208.67.222.222) instead of system-wide DNS settings. You can add no more than 6 DNS servers. Like:

dns-servers 8.8.8.8;208.67.222.222

Sample code (C#) of using the dll:

public class PrivoxyWrapper {
[DllImport(@"LibPrivoxy.dll")]
public static extern int StartPrivoxy([MarshalAs(UnmanagedType.LPStr)] string configFileFullPath);

[DllImport(@"LibPrivoxy.dll")]
public static extern void StopPrivoxy();

[DllImport(@"LibPrivoxy.dll")]
public static extern int IsRunning();

}

libprivoxy's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.