A pedophile tried to convince police he had accidentally searched for child abuse online when he was caught with vile images and videos.