Wondering why can you post to periods that have been closed? E.g. Why is NetSuite allowing you to post to AP when the period is closed?
Are you logged in as Administrator? Administrator users have the access to “Override Period Restrictions permission” by default. Create a new role and make sure this permission is removed.