This question is commonly asked and easily answered: you can't. That's right, in practice you can't ensure that a website will comply with all applicable laws. Why not? To answer this question, you need to appreciate a couple of basic legal points. First, a website may be impacted by laws of many different kinds. Second, there is no "international law" of websites as such. Website legal compliance needs to be approached from a national perspective.
private international law