Do I have the right to visit my ex-girlfriend's son?

I raised my ex-girlfriends son from the time he was born until he was 7 years old. Do I have any custody or visitation rights at all?
Please sign in to answer this question.