Find Jobs
Hire Freelancers

Update RBL check script with DB functions

€30-250 EUR

已完成
已发布超过 4 年前

€30-250 EUR

货到付款
Update RBL check script with DB functions RBL servers are in array $rbls in the script we store them in DB TO DO get them from DB $sql = "SELECT * FROM `rblservers` WHERE `use` = 'true'"; and place it in array get clientnumbers from DB $sqlclientsresult = "SELECT clientnr FROM `clients`"; for each client get ipaddresses to check $ip is in the script now We have a table ipaddress where all IP's are in, get them from table and do rblcheck for each We store the IP as longip $sqlclientsipsresult = "SELECT id, inet_ntoa(longip) as IP FROM `ipaddress` WHERE `clientid` = '" . $rowclients['clientnr'] . "' AND `test` = '1'"; $nu = gmdate($this->dateFormat, time()); Store the scan for the ip listedinrbl is amount of RBL where IP is positive INSERT INTO `rbltests` (`id`, `ipaddressid`, `datetime`, `listedinrbl`) If listed store it rblpositive INSERT INTO `rblpositive` (`ipid`, `rblserverid`, `datetimefirstfound`, `datetimelastfound`, `listed`) INSERT INTO `rblpositive` (`ipid`, `rblserverid`, `datetimefirstfound`, `listed`) VALUES ('1', '8', '$nu', '1') If solved UPDATE `rblpositive` SET `datetimelastfound`='$nu', `listed`='0' This script uses $rev = join('.', array_reverse(explode('.', trim($ip)))); $lookup = sprintf('%s.%s', $rev, $rbl); $listed = gethostbyname($lookup) !== $lookup; for the tests Another solution is: $reversedIP = implode('.', array_reverse(explode ('.', $ip))); // Do the DNS lookup $result = ""; exec("nslookup " . $reversedIP . "." . $value, $result); Please test which works best: fastest versus server load
项目 ID: 20826986

关于此项目

2提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello there, As discussed in chat, the project is already finished and completed. Looking forward to working on more projects.
€105 EUR 在1天之内
5.0 (131条评论)
6.3
6.3

关于客户

BELGIUM的国旗
Brugge, Belgium
5.0
41
付款方式已验证
会员自2月 4, 2008起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。