postcd Posted November 11, 2014 Share Posted November 11, 2014 He does some abuse on some of his accounts repeatedly, but i dont want to suspend all his services by cancelling account. I want just let them expire and dont allow ordering him more services or somehow banning his IP to order more 0 Quote Link to comment Share on other sites More sharing options...
wrighty852 Posted November 11, 2014 Share Posted November 11, 2014 If he is braking your t-o-s then let im go no host will aloud this if something went wrong with the server u have pay not him just my opinion sorry. 0 Quote Link to comment Share on other sites More sharing options...
adroitssd Posted November 11, 2014 Share Posted November 11, 2014 Banning IP is not effective solution. use maxmind that reduce fraud. You can disapprove all of his new order. But if the client change is name or ID you cannot detect it. So better to discuss . 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted November 12, 2014 Share Posted November 12, 2014 Phase II of this will do just what you want. http://forum.whmcs.com/showthread.php?93607-Permanent-Global-Client-Ban-for-WHMCS Phase I has been on the market for a short time now which coveres the registration end of things. We are dev this but we wanted to give some time for the remainder of feedback from phase I before we dive full speed into phase II as you can see in the image of the addon on reply #4 of the link above, phase II section will cover current client ordering. We hope to have phase II on the market by 1 jan 2015 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted November 13, 2014 Share Posted November 13, 2014 If you just wanted a simple way to do this for now you could put in place a hook that blocks access to the cart.php page based on the current ip address or the client id if they are logged in: This would go in includes/hooks, you can call it anything such as block_cart.php <?php function block_cart($vars) { $banned_ips = array("192.168.1.1","192.168.1.2","192.5.5.2"); $banned_client_ids = array(153,10,122,2); if ($vars["filename"] == "cart" && (in_array($_SESSION['uid'], $banned_client_ids) || in_array($_SERVER['REMOTE_ADDR'], $banned_ips)) ) { header('Location: clientarea.php'); exit(); } } add_hook("ClientAreaPage",1,"block_cart"); ?> 1 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.