I want to restrict the camera viewing angle in both x and y direction in a first person controller

Can any one help me out from this problem i am very beginner for unity

there are specs on the camera that allow you to take the view port down to almost nothing.that sounds like what you are looking for just click on the camera.