Social Networking Sites (SNS) are being used for over a decade, and has exponentially grown in popularity in the recent few years. They are web based services that allow individuals to: (a) make a public or semipublic profile (b) share contents with many users (c) view and traverse other user list. SNS allow users to connect, share information and other comments, chat, play games, and even add comments. Social networking sites are very useful in sharing information, making friends and keeping in touch with old friends. It is an online service, platform, or site that focuses on facilitating the building of social networks and social elation among peoples for sharing interests, activities, backgrounds, or real-life connections. But with the increasing demand of social networking sites (SNS) privacy and security concern have also increased. The focus of our study is to measure the amount of Privacy in SNS, and based on these current techniques and attack strategies I propose a model designed in PHP to handle the privacy and security issues of SNS's. We propose a policy based infrastructure, with the help of a SNS designed in PHP, that allows: 1. Users to express their privacy preferences with respect to who can access their data and for what purpose. 2. Data provider support to enforce user privacy preferences, and supporting additional access models. 3. Handling privacy issues and access of data in SNS.