It is not a security measure, per se. Security by obscurity is where you rely upon some fact which you think is not known to an attacker. The problem with this type of "security" is that, once the fact is disclosed, the security scheme is rendered entirely useless.