The U.S. Supreme Court on Friday upheld a Texas law requiring pornography websites to verify users’ ages to prevent access to minors.

The Texas law, passed in 2023, requires companies that distribute “sexual material harmful to minors” to use any commercially available online system, including ones that verify users’ government-issued IDs, to confirm visitors are over age 18.

Websites that don’t comply can face fines of up to $10,000 per day and up to $250,000 if a minor is exposed to explicit content.