Jump to content

How do I enable client IP tracker in contact form?


pikerr

Recommended Posts

8 hours ago, pikerr said:

Im using WHMCS contact us form, how do I add the code to capture client IP address ?

it doesn't use an email template and that email is hard-coded internally to WHMCS...

two thoughts..

  1. if you are using PHP Mail for your email settings, I think it will show the client's IP in the header - specifically in the X-PHP-Script setting output... I can't recall if the same applies when using SMTP to send.
  2. perhaps you could add just jQuery/JS to the form to add the client's IP value to the message string before it sends to WHMCS ?

all that said, there's nothing to stop a user hiding their IP by any number of methods - so there's no guarantee that any value you receive for their IP address, by any method, would be accurate.

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.

×
×
  • 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