It depends on the laws of the locality where the website is hosted.
I think it probably depends on the policy of the web-hosting company. Some require their clients to indicate if a page is unsuitable for children.
Which browser are you using? You should be able to set your search parameters so that they warn you before opening an "adult" page.