I know using fresh herbs to infuse oil can be dangerous as the oil might become a breeding ground for botulism. I was wondering, if I first rinse my herbs (or peppers for that matter) and then dry them for several weeks/months, would it be safe to make an infused oil with these dried herbs compared to fresh ones?
Per the University of Ohio Extension, yes, it does reduce the risk (emphasis added):
Flavored oils also can be a concern if not prepared correctly. When herbs, garlic, or tomatoes are placed in oils, the botulism spores on the plant material can start to produce the toxin in this anaerobic mixture. To be safe, keep these flavored oils refrigerated and make only the amount of herbal oils and butters that will be used in a few days. Using dried herbs and vegetables will also reduce the risk.
Still, reduce is not eliminate. The guidelines to not can or hold the oil for long term continue to apply.