A raffle is considered a form of lottery or gambling by the Internal Revenue Service. As a result, there are a number of restrictions and reporting requirements on all raffles. An online raffle brings additional obstacles for nonprofit organizations, particularly because online gambling is illegal in many states.