Code Monkey home page Code Monkey logo

ip2proxy-apache's Introduction

IP2Proxy HTTP Module for Apache

The module detects visitor IP addresses which are used as VPN anonymizer, open proxies, web proxies, Tor exit nodes, search engine robots, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks.

A IP2Proxy database is required for the lookup. It can be downloaded from https://lite.ip2location.com (Free) or https://www.ip2location.com (Commercial).

Installation

  1. Create a working directory.

    mkdir ~/ip2proxy-dev
    cd ~/ip2proxy-dev
    

  2. Download IP2Proxy C library source code.

    git clone https://github.com/ip2location/ip2proxy-c.git
    

  3. Compile and install the IP2Proxy C library.

    cd ip2proxy-c
    autoreconf -i -v --force
    ./configure
    make
    make install
    

  4. Refresh local library.

    ldconfig
    

  5. Download IP2Proxy Apache module.

    cd ~/ip2proxy-dev
    git clone https://github.com/ip2location/ip2proxy-apache
    cd ip2proxy-apache
    

  6. Compile IP2Proxy module.

    apxs2 -i -a -L /usr/local/lib/ -I ../ip2proxy-c/libIP2Proxy/ -l IP2Proxy -c mod_ip2proxy.c
    

Configuration

<IfModule mod_ip2proxy.c>
	IP2ProxyEnable <On|Off>
	# ENV will set server variables
	# NOTES will set apache notes
	# ALL will set both
	IP2ProxySetmode <ALL|ENV|NOTES>
	IP2ProxyDBFile <PATH_TO_IP2PROXY_BINARY_DATABASE>
	IP2ProxyDetectProxy <On|Off>
</IfModule>

ip2proxy-apache's People

Contributors

ip2location avatar

Watchers

 avatar  avatar  avatar

Forkers

duynguyen1879

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.