brute force attack is the simplest method to gain access to a site or a server, it tries different combination username and password again am]nd again until it gets in.you can prevent it by following ways:
1. password length
2.password complexity
3.limit login attemps
4.using captcha
Although there is no information in Brute-Force technique, certain passwords are tried and tried to reach the correct password . Use captcha if application ve If the server tries to log in after 5 times in 1 min, you can enter the policy