I've noticed when I'm using the internet at home and sometimes at work that I will receive messages that say "you are being redirected to another site" is this ok? why does this happen?

I’ve noticed when I’m using the internet at home and sometimes at work that I will receive messages that say “you

are being redirected to another site” is this ok? why does this happen?