Such law already exists and it goes like this: if you don't want your data to be used don't post it on the Internet. It works perfectly. Every single time. Try it.
Same with most health information.
Or your child’s beach pictures.
I do not think I should be allowed to access or use any of that without your consent