By Lex Gabrees
This might be completely undoable, but I have to ask anyway. I am running a tracking / analytics script called cpvlab and this script stores the IP addresses of visitors in the DB.
I have no problem in anonymizing the nginx access logs. This I can do.
However the script still stores the regular IP’s in the DB.
Anyone have an idea how I can force it to do otherwise ? Could it be that it takes the IP from NGINX somehow ? Maybe if I can strip the IP at the level of nginx, I could force the script to store blanks ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What is the tracking/analytics script that you are using? It would likely be easier to have the script not store the IP address then to adjust Nginx not to send it. It is also possible that the tracking script you are using will not work without IP address if it is using this along with a session cookie to track users.
The script is called CPVlab … and yes, what you said makes sense and but the source is encoded with ioncube, so I can’t see the source and I’m just guessing to where it strips the IP address from. It might also very well be that I cannot change that behavior … but I who knows, maybe nginx serves it to the script …
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.