Visual stimulation reduces epilepsy susceptibility in neonatal HBIN rats, likely through upregulation of BDNF and SYN expression in the occipital cortex. Here, BDNF is linked to epilepsy.