In today's world, the people have many issues in internet security and privacy. They use internet in travelling, social media, banking, study etc. But they often face the problems with the privacy of the network system. To accommodate this increase in application and data complexity, web services have moved to a multi-tiered design wherein the web server runs the application front-end logic and data is outsourced to a database or file server. IDS play a key role in computer security technique. But it also has drawbacks of its own. To overcome those drawbacks double guard technique is introduced.