Check the lawyers on the law. Will the lawyer know who has entered his homepage?

I won't! If there is a publishing location, it depends on the following:

That depends on where your consultation content is published. If it is in a public area, such as the Q&A section, others can view it through search, but if it is an online private chat with a lawyer, personal information and consultation content will not be seen by others.