Use of internet increases day by day so securing network and data is big issue. So, it is very important to maintain security to ensure safe and trusted communication of information between different organizations. Because of these IDS is very useful component of computer and network security. IDS system is used by many organizations or industries to detect the weakness in their security, documenting previous attacks and threats and preventing all of this from violating security policies .Because of these advantages this system is important in system security. In this paper we find the solution for different approaches (attacks) based on intrusion detection system. In this paper we identify different attacks and find solution for different type of attacks such as DDOS, SQL injection and brute force attack. In this case we use client server architecture. To implement this we maintain profile of user and base on this we find normal user or attacker ,when system find that attack is present then it directly block the attack.