You can usually report a person that is harassing you through reporting mechanisms present on most online platforms. You can also contact your local law enforcement in more serious cases.