Internet and smart devices

Many personal data, from cookie to video and from algorithm to smartwatch, are processed online. What are the rules here? And how do you protect your own data and those of others?