Clean out the gutter on your roof. If it is not draining properly and is creating excess moisture, this could attract woodlice to your home. Use your gloved hands to remove any gunk and look for blockages.
Remove anything that could be considered a good spot for woodlice around your home. These perfect homes for woodlice could include things such as moldy wood and carpeting. The farther these things are away from your home, the better.
Use an electronic pulse to drive woodlice out of your home. This is a simple plug-in unit that sends out a silent signal that will cause woodlice to flee your home. You can buy these units online, and they are reasonably inexpensive.
Use a chemical killer for woodlice you can buy at a home improvement store or online. This is a more lethal solution, but if you don't mind having to clean up the occasional dead woodlouse, it's a viable answer to the problem.