jclarke Posted July 22, 2012 Author Share Posted July 22, 2012 Version 1.4 is now available and has two new features. *You can now select a single server or all servers when unblocking an IP from the Admin area. *You can now enable the ability to search for an ip block upon client login. Download 1.4 from the Project Page 0 Quote Link to comment Share on other sites More sharing options...
ethix Posted July 22, 2012 Share Posted July 22, 2012 Version 1.4 is now available ... Thank you for the update. Just so you know I updated and the new options are there but in "Addons" the version still shows as 1.3. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 22, 2012 Author Share Posted July 22, 2012 Thank you for the update.Just so you know I updated and the new options are there but in "Addons" the version still shows as 1.3. I forgot to change the version number in the addon, it is fixed in the download now, thanks for letting me know. 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 22, 2012 Share Posted July 22, 2012 jclarke. You are doing such a great job by providing such kind of valuable addon for free. Its wonderful. Keep it updated by adding more and more functionality. Thanks 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 22, 2012 Share Posted July 22, 2012 I manually added an IP thorugh "Quick Deny" option and then tried to unblock through whmcs admin by selecting the appropirate server but it says. "The IP xxx.xxx.1.6 is not blocked on CP4 - Resellers Only" Any idea about this? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 22, 2012 Author Share Posted July 22, 2012 I manually added an IP thorugh "Quick Deny" option and then tried to unblock through whmcs admin by selecting the appropirate server but it says. "The IP xxx.xxx.1.6 is not blocked on CP4 - Resellers Only" Any idea about this? Does it work when you search all servers? 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 22, 2012 Share Posted July 22, 2012 (edited) Does it work when you search all servers? This does not work. Check attachment and you can see that IP is still blocked on server. I have tested so many IP's that are blocked on our different servers but all the IP's return the same error. It means this addon is not working. Edited July 22, 2012 by jamshed_11946 Spell Mistake 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 22, 2012 Author Share Posted July 22, 2012 This does not work. Check attachment and you can see that IP is still blocked on server.I have tested so many IP's that are blocked on our different servers but all the IP's return the same error. It means this addon is not working. [ATTACH=CONFIG]3178[/ATTACH] Can you check the following: -That you are using the latest version of csf, you can update quickly by running csf -u -That you have the proper login and hash key set for your cPanel servers. -If you are not using the root login that you have followed the instruction in the readme for using the module with a reseller account 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 22, 2012 Share Posted July 22, 2012 Can you check the following: -That you are using the latest version of csf, you can update quickly by running csf -u Yes. Our all servers have updated version of CSF. We have autoupdate enabled. -That you have the proper login and hash key set for your cPanel servers. Yes. Hash keys are working fine. All other module commands are working fine. -If you are not using the root login that you have followed the instruction in the readme for using the module with a reseller account Already followed. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 22, 2012 Author Share Posted July 22, 2012 Please download this debug version, and overwrite the files in your module directly with the ones in this zip. Then search for an ip to unblock from the admin area and PM me the results. This should give us more information as to why it isn't connecting. http://projects.serverping.net/attachments/download/13/debugunblockip.zip 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 22, 2012 Share Posted July 22, 2012 I have sent you screenshots with details. Please check it. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 23, 2012 Author Share Posted July 23, 2012 I have sent you screenshots with details. Please check it. You forgot to add GREP to the list of CSF commands a reseller can access. Once you add GREP it should start working for you. 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 23, 2012 Share Posted July 23, 2012 You forgot to add GREP to the list of CSF commands a reseller can access. Once you add GREP it should start working for you. Extremely sorry for my mistake. Now, I have added GREP in the list and its working fine now. However, if I click on return button, it shows an error. Please check screenshots. Thanks http://i48.tinypic.com/mt56hh.jpg http://i50.tinypic.com/ic1x6h.jpg 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 23, 2012 Author Share Posted July 23, 2012 Extremely sorry for my mistake. Now, I have added GREP in the list and its working fine now. However, if I click on return button, it shows an error. Please check screenshots. Thankshttp://i48.tinypic.com/mt56hh.jpg http://i50.tinypic.com/ic1x6h.jpg You need to switch back to the normal version, that is just the raw data outputted by the debug version. 0 Quote Link to comment Share on other sites More sharing options...
Ashley.S. Posted July 23, 2012 Share Posted July 23, 2012 Hi there, I like the looks of the module and love how you've improved it, just one simple question though: If I manually blocked an IP or marked a blocked IP as "do not delete" would this module remove the IP from the deny list if a client tried to use the system to remove the IP, or would it give out an error? The reason I ask is that I have known similar CSF Unblock IP modules available have been able unblock those IPs when really they shouldn't be able to be unblocked as they are usually blocked manually for a reason (e.g. rapidshare IPs, etc.) 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 23, 2012 Author Share Posted July 23, 2012 Hi Ashley, Right now it would remove them. It will be fairly quick to add a check for do not delete in the comment and not allow the ip to be unblocked. I'll get that added sometime soon. 0 Quote Link to comment Share on other sites More sharing options...
Ashley.S. Posted July 23, 2012 Share Posted July 23, 2012 Okay thanks Joe, I'll be watching and waiting for updates as that is my only major concern with these kinds of modules at the moment 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 25, 2012 Author Share Posted July 25, 2012 1.5 is now available to download. The only new feature it adds is an option to not allow for an ip address to be removed if the deny comment contains do not delete. You will still be able to delete the ip from the admin area but not the client area. This can be enable in the addon modules configuration page of WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 25, 2012 Share Posted July 25, 2012 1.5 is now available to download. The only new feature it adds is an option to not allow for an ip address to be removed if the deny comment contains do not delete. You will still be able to delete the ip from the admin area but not the client area. This can be enable in the addon modules configuration page of WHMCS. Thanks for this. Its working fine for me. 0 Quote Link to comment Share on other sites More sharing options...
jetdino Posted July 26, 2012 Share Posted July 26, 2012 Script error UnBlockIp 255 || intval($ip_parts) < 0) { return false; } } return true; } else { return false; } } function excecute_whm_csf_command($url, $whmuser, $whmauth, $authmethod) { $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); if ($authmethod == "basic") { $authstr = 'Authorization: Basic ' . base64_encode($whmuser .':'. $whmauth) . "\r\n"; } else { $authstr = 'Authorization: WHM ' . $whmuser . ':' . $whmauth . "\r\n"; } $header[0] = $authstr; curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_URL, $url); $r = curl_exec($curl); if ($r == false) { error_log("curl_exec threw error \"" . curl_error($curl) . "\" for $url"); } curl_close($curl); return $r; } function search_for_ip($ip, $url, $whmuser, $whmauth, $authmethod) { $query_url = $url.'?action=grep&ip='.$ip; $data = excecute_whm_csf_command($query_url, $whmuser, $whmauth, $authmethod); $matches = array(); $pattern = '/ 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 26, 2012 Author Share Posted July 26, 2012 Jetdino, I'm not sure what you are referring to. Can you please give a more detailed description of the problem your having. 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted July 26, 2012 Share Posted July 26, 2012 Thank you for this useful script. Is it possible to subscribe to updates, via email? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 26, 2012 Author Share Posted July 26, 2012 Thank you for this useful script. Is it possible to subscribe to updates, via email? I don't have an email list setup for this at the moment, you can subscribe to this thread, I will post any updates here. If you have an RSS reader, there is an Atom feed for new release updates here: https://projects.serverping.net/projects/unblockip/news 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted July 26, 2012 Share Posted July 26, 2012 Thank you for this useful script. Is it possible to subscribe to updates, via email? Why not you just subscribe to this thread as Joe updates this thread whenever new release is ready to download. 0 Quote Link to comment Share on other sites More sharing options...
jetdino Posted July 28, 2012 Share Posted July 28, 2012 Jetdino, I'm not sure what you are referring to. Can you please give a more detailed description of the problem your having. I using your script and get error when client login in dologin.php 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.