Find Jobs
Hire Freelancers

Update RBL check script with DB functions

€30-250 EUR

Selesai
Disiarkan lebih dari 4 tahun yang lalu

€30-250 EUR

Dibayar semasa penghantaran
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 Projek: 20826986

Tentang projek

2 cadangan
Projek jarak jauh
Aktif 5 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
Hello there, As discussed in chat, the project is already finished and completed. Looking forward to working on more projects.
€105 EUR dalam 1 hari
5.0 (131 ulasan)
6.3
6.3

Tentang klien

Bendera BELGIUM
Brugge, Belgium
5.0
41
Kaedah pembayaran disahkan
Ahli sejak Feb 4, 2008

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.