Have you ever wondered how you could deny access for users on a Sharepoint 2010 site. I had a need i wanted to make a site not to be accessible for the users, luckly I had the root site configured on a site-collection level. In SharePoint 2010 there is a setting where you can make users on a site Collection from adding any content, making it Read-Only or Denying Access.
Step 1.
Navigate to Central Admin >Application Management > Configure Quotas and Locks
Step 2.
Select the Site Collection you want to Lock, appropriate Option you like. Here you can select to make it "Read-Only" "No Access" or prevent users from adding content
Step 3.
Type in "Additional Lock Information
Step 4.
Click OK
Now when the users try to access the site, they will be forbidden.
Step 1.
Navigate to Central Admin >Application Management > Configure Quotas and Locks
Step 2.
Select the Site Collection you want to Lock, appropriate Option you like. Here you can select to make it "Read-Only" "No Access" or prevent users from adding content
Step 3.
Type in "Additional Lock Information
Step 4.
Click OK
Now when the users try to access the site, they will be forbidden.