Webpage type auto detection