Any orbital space settlement has a permanent risk to be hit by a meteorite. This an important concern for any government of space settlements, and hence measures have to be taken to reduce both the probability to be hit and the effects of such events.
First measure would be to design interplanetary settlements such that they will be able to withstand hits by small meteorites. Secondly the government should establish an agency with the task of permanently monitoring all objects which might pose a threat to a space habit. We will call this agency the Detect and Destroy Corps or DDC.
Once a possible threat has been identified, the next question is what further measures should be taken. Time will be a crucial factor. If there is relatively much time, weeks or months, the best action would be moving the habit. Since space habitats are located in free space, they could be easily moved away from the line of attack. Given that the gravity of space habitats is negligible, the meteorite will not be attracted towards the settlement.
When time is short, moving the settlement might become problematic and much will depend on the mass of the meteorite. In extreme cases evacuation of the habitat might be the only available option. Consequently space governments should posses the means for executing such evacuation.
Fortunately larger meteorites are easier to detect and their numbers are smaller. Hence medium-sized meteorites are the greatest concern of the DDC. One fact that might help is that the distances between objects in space are large. A distance of 100 thousand kilometers is considered small.
Other possible actions the DDC should be able to take are deflection of a threat or to destroy a meteorite on collision course. Deflection of a meteorite will need significant preparations and hence time. For destroying a meteorite particle beam weapons might be deployed. These weapons use particle accelerators to produce high-energy particle beam. Since these particle travel at nearly the speed of light, they are crucial for countering an immediate collision.
One cannot rule out the possibility of terrorists or adversaries deflecting comets or asteroid, or targeting projectiles at a space habitat. Also in this case early warning system are important. Since in practical terms there is little difference between a natural threat and a human one, it is necessary to place the Detect and Destroy Corps under the command of the military. Actually the DDC will be the core of the armed forces of space settlements.
In order to maintain good foreign relations, it is important to emphasize that the DDC is primarily a defense force to protect space settlements against natural threats and those posed by rogue nations or non-state actors.
 In order to produce a little bit of gravity an amount of mass several magnitudes larger than the mass of the settlement will be required. The artificial “gravity” generated by the rotation of the habitat will not affect its interactions with external objects.