Page 1 of 1

Possibe to see where API\WebForm Lead Came from?

PostPosted: Thu Feb 07, 2019 6:39 pm
by Nefariousparity
Is it possible to see via DNS or IP address what external source activated the ADD_LEAD API on a vicidial web server? I have a test lead that was posted, for example, where did it come from externally?

Re: Possibe to see where API\WebForm Lead Came from?

PostPosted: Thu Feb 07, 2019 7:41 pm
by williamconley
Have you checked the API log?

API runs on apache. Thus the apache log should contain the IP of the requester. Luckily apache shows the full URL "GET" data (but not POST data), so you can actually search the apache logs for the lead ID and should be able to zoom right in on what you need.

Code: Select all
cd /var/log/apache2; grep 55555 * -Rin


Replace 55555 with the actual lead id of your test lead.

Next time you give out the API information to someone, use the "source=" field for the company name to save yourself the effort. Then it'll be in the API log.

Re: Possibe to see where API\WebForm Lead Came from?

PostPosted: Fri Feb 08, 2019 3:29 pm
by Nefariousparity
William, as always thank you very much. You are a scholar and a saint as usual.

Re: Possibe to see where API\WebForm Lead Came from?

PostPosted: Fri Feb 08, 2019 3:40 pm
by Nefariousparity
Well, we see a lead that did not come from that company. So we are trying to track if a agent is trying track where our leads come from. That is why I am trying to track IP of where the lead came from. I did include source field. But if the agent new how to put information in the internet browser and test...

Re: Possibe to see where API\WebForm Lead Came from?

PostPosted: Fri Feb 08, 2019 4:11 pm
by williamconley
Nefariousparity wrote:Well, we see a lead that did not come from that company. So we are trying to track if a agent is trying track where our leads come from. That is why I am trying to track IP of where the lead came from. I did include source field. But if the agent new how to put information in the internet browser and test...


The agent would need a user/password with API=1 and permission to see the information in question. I suggest you NOT give this to him.

Next up: change your cron/1234 password to a different password. There's a script to do this. Don't try it on your own without the script. DO backup the entire system before you change it.