Nice work ProxyHelp,
I got the blocked sites + the allowed to work, but had problems wih the last few lines in the browse.php and had to change the last $data2 for the allowed to $data to keep the format of the sites intact
Had to remove the last else because it always works even if the site is supposed to work, the lines were:Code:// index tag
$noindex = '<meta name="robots" content="noindex">';
// block code
$blocktag = '<!--14feb-youth.com-->';
if (preg_match($blocktag, $data)) {
$data = 'Use 1 proxy at a time';
$ads1 = '';
}
else {
echo "";
}
// header
$data2 = $makeroom.$noindex.$blocktag.$ads1.$data;
//block types
if (in_array($requri, $blockformats)){
$data2 = 'File type not aloud';
}
for($x = 0; $x < count($blockformats); $x++)
{
preg_match("/".$blockformats[$x]."/", $requri, $matches);
if(count($matches) > 0)
{
$data2 = 'File type not aloud'.' <a href="'.$scheme.'://'.$newhost.$requri.'">Download without Proxy</a>';
}
else{
}
}
// Dont proxy
if (in_array($newhost, $dontproxy)){
header("Location: http://$newhost/");
$data = '';
}
// check if aloud
if (in_array($newhost,$blocksites))
{
$data = $newhost.$blockedtext;
}
if (in_array($newhost, $blockbut))
{
echo $data;
}
elseif ($blockbut==$blank)
{
echo $data;
}
the file types code didn't work though, tried downloading a pdf after adding it to test blocking and it worked, but bigger files, check in the browse.php the lineCode:else
{
$data2 = 'Site is blocked';
echo $data2;
}
its a bug, but prevents from download over 5.75 megabytes, it gives the user a message of :Code:$data = stream_get_contents($fp);
Fatal error: Allowed memory size of 6291456 bytes exhausted (tried to allocate 6029312 bytes)

