I think the rule should be something kind of like, do not post a job ad unless you actually intend to fill the position.
And then if a company posts the exact same ad for an excessive number of months and their headcount hasn't changed, they're clearly breaking the rule.