Can you buy penicillin via the internet?

No. It is a prescription. Unless seen or discussed with a doctor (including telemedicine), you can't get it.