laszlof Posted November 30, 2011 Share Posted November 30, 2011 I suspect this addon may be useful for others as it is for us. So I'm going to go ahead and offer it freely to the WHMCS public. The module basically allows you to virtually whitelist specific IP address in the admin area. if an IP address gets banned that is on the whitelist, it will automatically be removed by a cronjob that runs every minute. The module itself is very simple, but saves us a lot of time due to having so many administrators logging into WHMCS from the same IP address. Anyways, the README.txt explains the details, its very easy to install and setup as with all my module. Feel free to give me feedback or if you have any questions. adminipwhitelist-1.0.zip 0 Quote Link to comment Share on other sites More sharing options...
edvan.com.br Posted December 1, 2011 Share Posted December 1, 2011 Frank, small suggestion: Line 97: if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } Line 140: </form><br /> <br /> <b>Current IP:</b> '.$ip.'<br /> <br />'; Result http://awesomescreenshot.com/016pd4j76 Another suggestion: Line 129: <td class="fieldarea"><input type="text" name="ip" value="'.$ip.'" size="25">(i.e. "127.0.0.1")</td> Result http://awesomescreenshot.com/02cpd4od3 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted January 2, 2012 Share Posted January 2, 2012 Very nice addon !! Thanks for sharing it. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 3, 2012 Author Share Posted January 3, 2012 Frank, small suggestion: Line 97: Line 140: Result http://awesomescreenshot.com/016pd4j76 Another suggestion: Line 129: Result http://awesomescreenshot.com/02cpd4od3 Thanks for the suggestions. Except, as far as I know, the IP ban in WHMCS doesnt respect those variables when banning IP addresses. 0 Quote Link to comment Share on other sites More sharing options...
Xenoo Posted April 6, 2012 Share Posted April 6, 2012 I am trying to install it , and when I go to it it says to add the cron to the crontab. What is the crontab? 0 Quote Link to comment Share on other sites More sharing options...
striddy Posted April 6, 2012 Share Posted April 6, 2012 I am trying to install it , and when I go to it it says to add the cron to the crontab. What is the crontab? What hosting control panel are you using ? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted April 6, 2012 Author Share Posted April 6, 2012 http://en.wikipedia.org/wiki/Cron 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted May 8, 2012 Share Posted May 8, 2012 I am trying to install it , and when I go to it it says to add the cron to the crontab. What is the crontab? I am sorry to be the one to say this, but it must be said. If you do not even know what the crontab is, are you sure you are even capable of handling your clients support requests? 0 Quote Link to comment Share on other sites More sharing options...
Blueberry3.14 Posted May 25, 2012 Share Posted May 25, 2012 I am sorry to be the one to say this, but it must be said. Thank you <- Smiley here 0 Quote Link to comment Share on other sites More sharing options...
Manchester Web Hosting Posted May 29, 2012 Share Posted May 29, 2012 Good mod 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted July 9, 2012 Share Posted July 9, 2012 Doesn't handle IPv6 IP's 0 Quote Link to comment Share on other sites More sharing options...
shay75 Posted April 28, 2013 Share Posted April 28, 2013 I did not understand Need to add these lines? 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.