Comedian Dane Cook is receiving backlash for not allowing the airing of his act during the benefit concert for the Boston Marathon bombing victims, as reported by CBS News.

Right before he went up on stage at the concert, Cook apparently decided that he wil not allow his set to be part of the live stream that thousands of people were watching online, according to The Boston Globe.

The Boston Strong Concert, which took place on Thursday night, also featured performances from Aerosmith, Jimmy Buffett, James Taylor, New Kids on the Block and Boyz II Men.

All the money raised went to The One Fund Boston, which was started by Gov. Deval Patrick and Mayor Thomas Menino to support the bombing victims.

Many attacked the comedian for his decision on Twitter.

 "You're not looking out for #Boston, you're only looking out for yourself. You should be ashamed of yourself," tweeted one angry user.

"If you follow @DaneCook please unfollow him today," tweeted another.

Cook, a Massachusetts native, tweeted an apology.

"Hey everyone sorry my set was not a part of the live stream or televised! I didn't want any of the new material to hit the airwaves yet," he wrote on May 31.

Following that he tweeted, "I came back to Boston for one reason. The people. I received (and met) many of the people injured tonight. You are the greatest people."

A representative of the concert also defended cook.

"Dane donated both his time and incredible talent to yesterday's event and was most certainly an integral part of making the evening an extraordinary success benefiting The One Fund," Jay Anderson from Live Nation told CBS News.

This won't be the first time, however, that the comedian is under fire for his actions. Last July, Cook made jokes about the shooting in Aurora, Colo., during The Dark Knight Rises, which killed 12 people and injured 58 more, according to Entertainment Weekly.

While referring to the shooter James Holmes, Cook said, "So I heard that the guy came into the theater about 25 minutes into the movie."

"And I know that if - you know - none of that had happened I'm pretty sure that somebody in that theater, about 25 minutes in ... probably was like ... shoot me," he added.

The comedian had apologized for that incident on his Twitter page, as well.

"I made a bad judgment call with my material last night & regret making a joke at such a sensitive time. My heart goes out to all of the families & friends of the victims," he wrote last July.