2 Camera scripts.

What is a way I could make my camera collide with a object at a certain distance from the player (thirdperson camera) so it doesnt go through walls, if possible also at a angle against wall it doesnt see through, and as little glitchy as possible.

How would I blur people that are very close to the camera or to far to see perfectly ? Oh and since im asking this, is it possible to blur slightly the edges of screen and make a bloom effect some how ?

For the collision, attach a capsul or a sphere solider to the camera / player , that will prevent it form going thou a wall.

I mean that I want a ray from player torwards camera to detect collision with wall at a certain distance, and if it collides with wall I want it to move the camera to a position against it.