Check for gaps around doors, windows, and pipes. Woodlice have a flat profile, so they can squeeze through the tiniest cracks. Use caulk or weatherstripping to block their path.
Don't forget the foundations! A gap under the door sweep is basically a red carpet for these crustaceans. They also love mulch or leaf piles right against your home’s walls—move that stuff at least a foot away.
How to Get Rid of Woodlice | BBC Gardeners World Magazine