This cannot be true. There are many places where photography is prohibited. (E.g. many bridges and roadways.)
ML/NJ
Those restrictions are mostly in the mind of those claiming them and do not in fact exist.