You can store resources in the Warehouse to prevent other players from looting them. Upgrade the Warehouse to increase its storage capacity.
Uncollected resources (resources in farms, refineries, and plants) are unprotected and can be looted. Make sure to collect resources regularly.