You can avoid sinus infections due to viruses with practices like frequent hand washing with soap, avoiding close contact with sick people, and covering your mouth when you cough or sneeze. Avoiding a sinus infection due to allergies includes avoiding the causes of your allergies, taking over-the-counter allergy medications when needed, and staying hydrated, well-rested, and active.