Never use the hosts file to modify SolidWorks behavior. You are gambling your company’s legal standing and intellectual property security to save a few thousand dollars. A single Dassault audit will cost you 10x the license fee.
A: Windows automatically regenerates a default hosts file. If your AV deleted it, it found malicious entries. Run a full scan immediately. This article is for informational purposes only. The author does not condone software piracy or the violation of Dassault Systèmes’ terms of service. Always use legitimate software licenses. Solidworks Host File Block
If you are maintaining an old version of SolidWorks (2019 or earlier) on an air-gapped (offline) machine, the hosts file block is technically valid. However, treat your hosts file as a sacred system file. Backup the original before editing, and sanitize any Patch.exe you download in a virtual machine first. Never use the hosts file to modify SolidWorks behavior