Banning people

How (if it is possible) do I ban people from visiting my domain/website. I can get the i.p adress.

Create a .htaccess file in the directory of the website you if you want to block them from seeing the whole site then you would use the first root directory of the site. (ex. ā€œā€)

order allow,deny allow from all deny from deny from 166.91

deny from - blocks a specific ip address
deny from 166.91 blocks a range everything after 166.91.x.x is blocked.

There is a whole kbase article here on how to block a directory so iā€™m assuming if you blocked the main directory it would block the viewing the whole site.