Athlon1600/php-proxy

Block All Websites Except Some?

Closed this issue · 1 comments

Is it possible to Block All Websites Except Some? Like stop people from being able to use the proxy for example.com but allow google.com?

I used this but it blocked scripts and sub domains too.

// decode q parameter to get the real URL
$url = url_decrypt($_GET['q']);
if(!preg_match('/(cnn.com)|(facebook.com)/', $url)){
exit;
}
$proxy = new Proxy();