Most of the mobile internet providers try to do this already in the uk. They do have lots of false positives, so you have to enable it to use the internet.
Some sites that appeared to be a personal dump of harmless images were blocked, while sites with various 'porn words' in their domains hosting as much porn as their owner could fit in them were fine.