Squid Proxy List Editor - utilises PHP/MySQL to generate (and backup) txt proxy lists.
JavaScript PHP Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
chosen
images
.gitignore
README
functions.php
index.php
jquery-1.9.0.min.js
jquery.joverlay.min.js
jscript.js
login.php
mydb.php
ple_config.php
restartsquid.php
restartsquid.sh
setup-database.sql
styles.css
styles.scss

README

Squid Proxy List Editor
-----------------------
Web interface for adding/deleting domains in Squid Proxy txt lists via PHP/MySQL.
With user login facility.

NB: Still in Development.
Writing lists to file is working but is yet to be tested on a production server with Squid running.

These scripts were set up and tested with PHP v5.4.6, MySQL 5.5.29


Setup
-----------------------
Create the database using setup-database.sql

Symlink the access lists to your web directory.
eg.
lrwxrwxrwx 1 root root 28 Feb 22 08:53 allowedsites.txt -> /etc/squid3/allowedsites.txt
lrwxrwxrwx 1 root root 28 Feb 22 08:53 blockedsites.txt -> /etc/squid3/blockedsites.txt
lrwxrwxrwx 1 root root 29 Feb 22 08:53 exceptedsites.txt -> /etc/squid3/exceptedsites.txt
lrwxrwxrwx 1 root root 29 Feb 22 08:53 prioritysites.txt -> /etc/squid3/prioritysites.txt

Your database and path locations added to ple_config.php.
Your own username, hash and salt added/changed in login.php

For the Squid3 reconfigure (to reload the access lists) you will need to add an
entry to /etc/sudoers for this to work, and restrict security problems

visudo /etc/sudoers
then add the following two lines.

# Allow www-data to reconfigure (reload cache?) of Squid
www-data ALL = NOPASSWD:/var/www/lists/restartsquid.sh