First, understand that if you get put in the friendzone by an attractive woman it's ALWAYS your fault, because you settled for her friendship instead of breaking it off and moving on. Never do that.

You avoid the Friendzone by NEVER being friends. Go in being clear with yourself (and her) that you're going to fuck, or there will be no relationship. Tell yourself "Fuck no" to being her friend and break it off. Move on. You deserve better.

Look, Women can have a hard time decoding guys' motivations if we're not clear, "Does he want to date me....or be my friend?" If you're not clear with yourself and with her, then she'll probably assume the latter, hence friendzone. If she thinks you want to be her friend you are done, man.

Make it clear with her from the very first interaction that you're interested in her sexually. Flirt, dammit. I've even told women straight out who demured that we were never going to be "Friends" (we fucked). If she's not interested in you sexually then fine, you've been clear, she's been clear, stop wasting both your time and move on.

In every successful seduction there must be a point where you risk losing her. You must risk losing her to gain her.

tl;dr Just say "No" to being friends.