Proxy List Checker Script

Status
Not open for further replies.

Tango

Moderator
Staff member
4,054
2009
1,608
15,185
I have a online proxy list checker site http://proxylistchecker.org


I made a little script so you can use your own hosting to check proxies and sort them into lists.

The outpost shows like this

9F8sVL.jpg



PHP:
<?php
// Gavo - Wjunction.com
if(empty($_POST))
	{
	echo'
	<form method="post" action="">Put proxies here<br/><br/>
	<textarea name="test_proxy" style="width:500px;height:200px;"></textarea><br/>
	<input type="submit" value="Test!"/>
	</form>';
	}
else
	{
	ob_start();
	set_time_limit(0);
	$postlinks = explode("\n", trim($_POST['test_proxy']));
	$transparent = array();
	$anonymous = array();
	$elite = array();
	foreach($postlinks as $link)
		{
		$test_link = addslashes(file_get_contents("http://www.proxylistchecker.org/api/check.php?strProxy=$link"));
		echo addslashes($link).":".$test_link."<br/>";
		flush_buffers();
		$test_link = explode("#", $test_link);
		if ($test_link[0]=="ok")
		array_push($$test_link[1],$link);
		}

	if ($transparent)
		{
		echo "<br/>Transparent Proxies<br/>";
		foreach($transparent as $link)
			{
			echo $link."<br/>";
			}
		}

	if ($anonymous)
		{
		echo "<br/>Anonymous Proxies<br/>";
		foreach($anonymous as $link)
			{
			echo $link."<br/>";
			}
		}

	if ($elite)
		{
		echo "<br/>Elite Proxies<br/>";
		foreach($elite as $link)
			{
			echo $link."<br/>";
			}
		}
	}

function flush_buffers()
	{
	ob_end_flush(); 
	ob_flush(); 
	flush(); 
	ob_start(); 
} 
?>
 
Last edited:
13 comments
Status
Not open for further replies.
Back
Top