Jump to content

How to disable when client login with 2 different ip or Location.


Recommended Posts

Sir, I want ,

When my client login with 2 different ip or Location at a same time then whmcs is banned him.

Can you help me about how i make this kind function.

How to disable when client login with 2 different ip or Location.

I want, my username don't share login details with others person.if him share my whmcs blocked him.

Please please humble request to you please reply me.

Thanks

Link to comment
Share on other sites

Before doing that, keep in mind that not everyone has an IP that's static, and some will change during the visit. It can appear to be two widely separated locations when it might be something like an ISP and IPs registered to one place but used in another. Happens fairly often. At the same time may be sharing, two devices (one mobile, one not), or some combination of those. 

Caution is recommended. 😉

Edited by bear
Link to comment
Share on other sites

I looked in to this a bit and it looks like the client's last login is updated before the ClientLogin hook is fired and thus would need another tracking method for this because WHMCS isn't storing the last session.  Also, this would work best if activity was tracked and not just last login.   I think an addon module with its own database table and hooks for clientlogin and clientareapages to track activity would be best.   As such, would recommend to post in the requests community and see if a developer will do this for you. 

As @bear mentioned, caution would be needed, however, if you do activity tracking and limit the threshold to like 5 minutes it should be okay for those that switch IPs during the same sessions.

Link to comment
Share on other sites

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