What is this?

Its not even my period yet but im getting a brown discharge constantly for the last few days. my period is expected to be in a couple of days i dont know what to do! i had protected sex about 10 weeks ago but i dont know if that helps. in not trying to get pregnant. i searched up what it was but all it showed was signs of pregnancy.