QPR lie second bottom, five points from safety, and Redknapp, who replaced Mark Hughes last month, wants the club's player of the season in 2010/11 to miss the January 19-February 10 tournament in South Africa.
"He [Redknapp] came to see me to ask me not to go but I told him: 'If they call me, I can't refuse, boss'," Taarabt told the French sports paper L'Equipe.
"I love my country, I love the Moroccan people and football means a lot to them. I warned him the only solution was if the coach doesn't call me up."
Taarabt has been out of favour with Morocco coach Rachid Taoussi in recent months but scored twice to help QPR register their first league win of the season last weekend.
"I miss it. I love my country, I can't refuse to go," he said. "There is the African Nations Cup and also the return leg against Ivory Coast who we must defeat in Abidjan to qualify for the World Cup," said the 23-year-old.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.