Polypeptides and fusion proteins that bind to eukaryotic viruses, in particular, eukaryotic single-stranded DNA (ss-DNA) viruses are provided. The polypeptides and fusion proteins bind to the replication initiation proteins (Rep) of ssDNA viruses and optionally inhibit viral replication and/or viral infection. The virus can be a plant pathogen or animal pathogen. Consensus sequences used to identify polypeptides that bind to eukaryotic viruses are also provided.