I want to ask can we give sadqa to online sites for eg there are many sites which are helping people in an amazing way like "whoishussain.com" can we donate money to them. If yes what should be the niyaat.
Yes you may donate to such organizations. Any trusted organization that is doing charity work you may donate to. The intention would be to give Sadaqa to this charitable project for the sake of Allah.