Skip to content

dimaslanjaka/php-proxy-hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-proxy-hunter

PHP proxy hunter

image image image

Requirements

  • php extensions
    • pdo_sqlite
    • php_zip
    • php_intl
sudo apt install php-sqlite3 php-zip unzip libicu-dev php-intl

for spesific php version using ex: php7.2-intl

Quickstart

  • clone repository
sudo apt-get install git git-lfs -y
git clone https://github.com/dimaslanjaka/php-proxy-hunter foldername
cd foldername
git lfs install
git lfs track *.rar
  • create database files
touch CIDR.txt CIDR-original.txt dead.txt proxies.txt proxies-all.txt proxies-http.txt proxies-socks.txt proxyChecker.txt proxyFetcherSources.txt proxyRange.txt status.txt working.txt
  • use WinRAR to extract sqlite database chunks in src folder into single database.sqlite file

  • modify .htaccess or nginx.conf with your domain

Crontab

run proxy checker every 10 mins

*/10 * * * * php /path/to/proxyChecker.php > /path/to/proxyChecker.txt 2>&1

run proxy fetcher every day once

0 0 * * * php /var/www/html/proxyFetcher.php

run proxy indexing every day once

0 0 * * * php /var/www/html/proxies-all.php

run proxy checker parallel every 1 hour 17 minutes

17 */1 * * * php /var/www/html/proxyCheckerParallel.php

run cleaner every week

0 0 * * 0 php /var/www/html/configCleaner.php

to run crontab using spesific user

crontab -u www-data -e

to list spesific user crontab

crontab -u www-data -l

Troubleshoot

  • To run webserver for nginx needs php-fpm install using sudo apt install php-fpm -y
  • To disable git indexing when changing permission files using chmod run git config core.fileMode false

Restart php

systemctl restart php7.2-fpm
systemctl restart nginx

Python

Requirements

  • python v3

Quick Start

python -m pip install -r requirements.txt
----------------------------------------------------------------------------
LICENSE
----------------------------------------------------------------------------
This file is part of Proxy Checker.

Proxy Checker is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Proxy Checker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Proxy Checker.  If not, see <https://www.gnu.org/licenses/>.

----------------------------------------------------------------------------
Copyright (c) 2024 Dimas lanjaka
----------------------------------------------------------------------------
This project is licensed under the GNU General Public License v3.0
For full license details, please visit: https://www.gnu.org/licenses/gpl-3.0.html

If you have any inquiries regarding the license or permissions, please contact:

Name: Dimas Lanjaka
Website: https://www.webmanajemen.com
Email: [email protected]