Legitimate Web sites, stores and marketers are compiling detailed digital files on their customers by tracking their every move across the Internet. Meanwhile, the federal government, in an effort to catch terrorists, has cast a dragnet that is collecting and sifting through vast numbers of Internet searches and e-mail from ordinary citizens, according to published reports.