That's a common and frustrating issue in cities! A loose bin is a nuisance, attracts pests, and costs money to replace. Here are some effective, practical methods I've seen work well.
The most permanent solution is a concrete anchor. Dig a hole at the bin's location, set the bin's foot or a heavy-duty metal loop into it, and pour quick-set concrete. This is ideal for public or permanent placements. For a slightly less permanent fix, use ground anchors or earth screws—large corkscrew-style stakes driven deep into the soil with a chain or cable attaching the bin. They hold remarkably well.
If drilling into pavement is an option, surface-mounted anchors are great. Use heavy-duty steel brackets or "U-bolts" secured with concrete anchors or bolts into the sidewalk. Always check local regulations first!
For theft prevention, a locking cable or security chain through the bin's handle and around a fixed object (like a post or railing) is a simple deterrent. You can also invest in commercial anti-theft bins with built-in locking bases.
For windy areas, weighting the bin is key. Fill the base with sandbags, rocks, or a concrete block. Some bins have rings for sandbag anchors you can lay around the base.
The best approach often combines a few methods: a weighted base plus a security cable. It deters casual theft and prevents the bin from becoming a hazard in bad weather. Start with the simplest, most permissible solution for your area and escalate as needed. A secure bin is a cleaner, safer neighborhood for everyone.