After encountering a black bear on my evening ride a few nights ago (first time since I started biking regularly back in 2014 lol) I decided that mayyyyybe I should carry my can of bearspray with me until winter sets in (which coincidentally is when the can expires).
*backstory*
About 30' in front of me I saw a rather large shadow book it across the trail in front of me and dive off into the nearby bushes.
"There's no way I saw what I thought I just saw..."
I clicked on my helmet light and panned around a bit and spotted a rather large black bear about 6 feet off the ground up a nearby tree. We exchanged longing glances of "Free Hugz?!" before I verbally greeted Yogi III and detoured down an adjacent trail. I knew there was one in the area, but I didn't expect to meet him face to face!
*/backstory*
I know you can buy these, but if you have a hacksaw and a sander it's cheaper to make your own using a cheap (bonus points if it's old) water bottle and cutting the top off. If you do it carefully the fit between the bottle and can will form a vacuum seal which keeps the "No-Hugz-4U" firmly within it's LDPE buddy.
...Also if you bomb downhills (I curmudgeon down them) you might want it within the frame and not on the fork!