This paper proposes a reputation-based framework to mitigate Distributed Denial of Service (DDoS) attacks in cloud computing by categorizing users into three classes based on credits: well-reputed, reputed, and ill-reputed. The method aims to reduce computational overhead and improve resource utilization by decrementing credits of clients exhibiting similar traffic patterns to attack traffic, thereby dropping their requests. Simulation results demonstrate that the framework enhances security and resource efficiency in cloud environments.