You can get branded and generic Viagra online, but they both require a prescription. As a result, you cannot buy them over the counter (OTC) — they require a consultation with a doctor.
While labels on over-the-counter (OTC) erection pills and products may hint they are just like Viagra (sildenafil) or another erectile dysfunction (ED) drug, their benefits remain largely unproven.