DHR is not positioned to offer legal advice regarding trespassing. The Code of Virginia includes several laws that make trespassing a crime. For that reason, DHR recommends that visitors to this page consult a lawyer for legal advice as well as the following sections of the Code of Virginia: Virginia Code 18.2-119 states that it’s unlawful to enter or remain on a person’s land after seeing a notice that prohibits trespassing. You can commit such a crime by violating a protective order against intrusion or staying on the property after the owner asks you to leave. Other relevant laws from the Virginia Code include 18.2-121, 18.2-23, and 18.2-120.