"you must have permission from the rightsholder to distribute any copyrighted material and if you don't we'll block your site"? Blocking under that law, whether you agree with it or not, isn't censorship.
But that is not "illegal content" - that is illegal sharing of legal content. The government making content itself illegal is much much the definition of censorship.