Jump to content

WHMCS Admin Whitelist Addon (FREE)


laszlof

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 1 month later...
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?

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated