Implementing ad detection in html pages, using image and anchor attriutes