Once you've added herbes to any oil, you must keep it refrigerated and use it or discard it within 10-14 days. Beyond that, it's dangerous to use. In the home, you cannot do anything to the infused oil to make it safe beyond that time.
"If you want to make an apple pie from scratch, you must first create the universe." -Carl Sagan