A man accused of repeatedly raping a woman he met online and holding her captive in his home over five days has fronted court and will spend the next three months in custody awaiting his next appearance.

Police allege Robert Wilson, 32, imprisoned a 39-year-old woman in his home in Darley, near Bacchus Marsh, between March 25 and 29 and repeatedly raped her, assaulted her and asked if she wanted to die while he held a crossbow to her head.

Robert Wilson, 32, has been charged after allegedly imprisoning and raping a woman at his home in Darley near Bacchus Marsh. Credit:Robert Wilson via Facebook

The woman told police she met Mr Wilson on the Badoo dating app two months ago but said he became extremely controlling, forced her to change her Facebook status, deleted contacts from her mobile phone and asked her to move in to his home.

Police allege that on March 25 he picked the woman up from her workplace and drove her to his home, where he punched her in the head and raped her.