Login hours are set in an organization to restrict the user’s who tries to login before or after login hours. To set login hours in an organization go to Setup=>Administration=>Manage users=>Profiles. IP ranges are used to restrict any login attempt is done from unknown IP addresses.