Essentially what I'm wanting to know is, if I set up my website to collect user IP addresses using a mysql database to see when they first visited + when they last visited and other info like what pages they have visited on my website, do I have to put a privacy policy to let the users know this is going on?
Also, do I have to provide proof of what it is their data will be used for?
To be more specific, this is my portfolio/blog that I'm making with this feature and I don't know if my efforts are worth it.
Thanks.
//This is the php code that grabs the IP address.
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
Also, I'm not associating their IP with who they are necessarily, but I'm using it to distinguish between 2 users because they may view different things.
Edit: This is for my professional portfolio/blog.
REMOTE_ADDR
- the other vars can be faked.