Form submission is restricted when allowing only specific IPs to access the site; however when only using whitelist or blacklist by Country nothing is restricted - pages, form submission, etc.
Steps to reproduce:
1. Installed Restrict IP on Drupal 8.9.16 website as well as the IP-based determination of Country module.
1B. Updated with patch from issue 2957482 - had same error.
2. Enabled Blacklist by Country and selected United States
3. Tested from another IP other than my own - all pages were visible and form submission was executed. Expected the other user testing would not be able to submit the form because they were in the United States.
4. Changed setting to disable blacklist by Country and enabled Restricted IPs - only allowing my IP address to access to the site - tested from another IP and form submission was blocked as expected.
5. Ran other multiple tests with same conclusion at no time could I get Blacklist by Country to block any pages or form submissions.
Has anyone else successfully used the Blacklist by Country option? If so, what other steps did you take other than the ones I listed above to get it to work. Does the blocking only work for authenticated users?
Active
5.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.