Macrophages exposed to VIP or PACAP before HIV-1 infection showed resistance to viral replication, comparable to that observed when the cells were treated after infection. Here, ADCYAP1 is linked to infection.