Spiders in the backyard
Sure, you can treat a band around your house about two or three feet wide.
Would you prefer to use a liquid and pump up sprayer or powder/granule? HD has a small bottle (about one ounce) that is about $5, makes two gallons I think which should be plenty to spray a band with. Get a few inches up the foundation and a couple of feet out.
Or, an ant killer granule will work just the same if you prefer to use that. You obviously cannot spray up the sides of the foundation but with a handheld broadcast applicator you can cover six or eight feet around the house. Look for a product that contains fipronil or one of the "....thrins" Permethrin and bifenthrin are two of the more common.
But, as long as you have the weeds, you will have the bugs.
If it's worth doing, it's worth doing right. If you wouldn't put your name on it, it ain't done right!