Change Log:
Removed the use of /var/cpanel/3rdparty/bin/php
Added new CPPHP support
Upgrade:
It will be automatically upgraded to the new version. If you like to upgrade it manually, then simply run the cpremote installer in your server.
Removed the use of /var/cpanel/3rdparty/bin/php
Added new CPPHP support
Vhost configuration of *foo.com
#################################################################
server {
access_log off;
error_log logs/vhost-error_log warn;
listen [::]:80;
server_name *.foo.com;
location ~* ^.+.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|iso|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|ogv|ogg|flv|swf|mpeg|mpg|mpeg4|mp4|avi|wmv|js|css)$ {
order allow,deny
deny from 127.0.0.1
allow from all
sudo yum update
sudo /etc/init.d/httpd restart
<?php
require_once('Net/DNSBL.php');
$iplist = file("/path/to/iplist");
foreach ($iplist as $ip){
$dnsbl = new Net_DNSBL();
$dnsbl->setBlacklists(array(
'sbl-xbl.spamhaus.org',
'dnsbl.sorbs.net',
'bl.spamcop.net',
'dnsbl-1.uceprotect.net',
'dnsbl-2.uceprotect.net',
'dnsbl-3.uceprotect.net',
'isps.spamblocked.com',
'zen.spamhaus.org'
));
if ($dnsbl->isListed($ip)) {
echo "IP $ip is blacklisted!\n";
}
else {
echo "IP $ip not listed\n";
}
}
?>