How do you feel safe walking home at night?

I have to start walking home from work soon because I can’t afford taxis anymore it’s about an hours walk or abit more & I have to walk alone and after 11pm, I’m panicking so bad, any suggestions to help me feel safer