Does the internet provider know the websites visited? No doubt, and keeps it for later. Legal requests are commonly known as subpoenas, warrants, and court orders.