PHP proxy hunter
- pdo_sqlite
- php_zip
- php_intl
sudo apt install php-sqlite3 php-zip unzip libicu-dev php-intl
for specific php version using ex:
php7.2-intl
ensure these functions are activated on your server
- shell_exec
- exec
;suppress inspection "DuplicateKeyInSection" for whole file
; uncomment below codes from php.ini
extension_dir = "ext"
extension = pdo_sqlite
extension = curl
extension = openssl
extension = mbstring
extension = intl
extension = xmlrpc
extension = fileinfo
extension = sockets
extension = xsl
extension = exif
extension = gettext
extension = ftp
- clone repository
sudo apt-get install git git-lfs -y
git clone https://github.com/dimaslanjaka/php-proxy-hunter folder_name
cd folder_name
git lfs install
git lfs track *.rar
-
rename
.env_sample
into.env
-
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
ornginx.conf
with your domain
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
- 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
systemctl restart php7.2-fpm
systemctl restart nginx
- python v3
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]