I very much doubt that there is federal law that prevents this.  I've never heard of any such law, and in fact many states have laws that set up procedures for communities to put this kind of restriction in place.This isn't unlimited, though, it can't be put in just anywhere-any-time, and there are some technical requirements that usually have to be followed.  If you think that a particular place you're interested in has broken these rules, you can get advice to rely on from a local attorney who has gone over all the facts.  One place to find a lawyer is our website:  http://attorneypages.com