Membership not hiding all my Nav Menus

I have a VISITOR level set and activated in membership and Negative rules have all four boxes checked for BuddyPress

Activity

Members

Groups

Blogs

In Edit options the Stranger level is also set to VISITOR. I have the membership plugin fully activated and made public, etc. fyi.

However, activity, groups and blogs for some strange reason is still showing when someone is not logged in.

So I also use navigation.php for all four buddy press nav menus which now hides them all. All four of these menus are now hidden when someone is not logged in in other words.

Here is functions.php

<?php if( BP_ENABLE_MULTIBLOG == 1 ) : // enable user blog tweak ?>

<li<?php if ( is_front_page() || !bp_current_component() ) : ?> class=”selected”<?php endif; ?>>

” title=”<?php _e( ‘Home’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Home’, TEMPLATE_DOMAIN ) ?>

?php if ( is_user_logged_in() ) { //check user are now loggedin ?>

<?php if ( ‘activity’ != bp_dtheme_page_on_front() && bp_is_active( ‘activity’ ) ) : ?>

<li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class=”selected”<?php endif; ?>>

<?php echo BP_ACTIVITY_SLUG ?>/” title=”<?php _e( ‘Activity’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Activity’, TEMPLATE_DOMAIN ) ?>

<?php endif; ?>

<?php } ?>

<?php $privacy_enable = get_option(‘tn_blogsmu_privacy_status’:wink:; if($privacy_enable == ‘enable’:wink: { ?>

<?php if (is_user_logged_in() ) { ?>

<li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class=”selected”<?php endif; ?>><?php echo BP_MEMBERS_SLUG ?>/” title=”<?php _e( ‘Members’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Members’, TEMPLATE_DOMAIN ) ?>

<?php } ?>

<?php } else { ?>

<li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class=”selected”<?php endif; ?>><?php echo BP_MEMBERS_SLUG ?>/” title=”<?php _e( ‘Members’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Members’,TEMPLATE_DOMAIN ) ?>

<?php } ?>

<?php if ( is_user_logged_in() ) { //check user are now loggedin ?>

<?php if ( bp_is_active( ‘groups’ ) ) : ?>

<li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class=”selected”<?php endif; ?>>

<?php echo BP_GROUPS_SLUG ?>/” title=”<?php _e( ‘Groups’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Groups’, TEMPLATE_DOMAIN ) ?>

<?php if ( bp_is_active( ‘forums’ ) && ( function_exists( ‘bp_forums_is_installed_correctly’ ) && !(int) get_site_option( ‘bp-disable-forum-directory’ ) ) && bp_forums_is_installed_correctly() ) : ?>

<li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class=”selected”<?php endif; ?>>

<?php echo BP_FORUMS_SLUG ?>/” title=”<?php _e( ‘Forums’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Forums’, TEMPLATE_DOMAIN ) ?>

<?php endif; ?>

<?php endif; ?>

<?php } ?>

<?php if ( function_exists( ‘bp_core_is_multisite’:wink: ) : ?>

<?php if ( is_user_logged_in() ) { //check user are now loggedin ?>

<?php if ( function_exists( ‘bp_blogs_install’ ) && bp_core_is_multisite() ) : ?>

<li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class=”selected”<?php endif; ?>>

<?php echo BP_BLOGS_SLUG ?>/” title=”<?php _e( ‘Blogs’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Blogs’, TEMPLATE_DOMAIN ) ?>

<?php endif; ?>

<?php } ?>

<?php else: ?>

<?php if ( function_exists( ‘bp_blogs_install’:wink: ) : ?>

<li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class=”selected”<?php endif; ?>>

<?php echo BP_BLOGS_SLUG ?>/” title=”<?php _e( ‘Blogs’, TEMPLATE_DOMAIN ) ?>”><?php _e( ‘Blogs’, TEMPLATE_DOMAIN ) ?>

<?php endif; ?>

<?php endif; ?>

<?php endif; ?>

<?php wp_list_pages( ‘title_li=&depth=1&exclude=91’ . bp_dtheme_page_on_front() ); ?>

<?php do_action( ‘bp_nav_items’ ); ?>

Now when someone visit the site (not logged in) all four nav menus are completely hidden as expected but if they manually add(type in) /groups or /blog at the end of the url they are still able to access those pages. Not what I want as I rather them not to have any access at all.

If they manually add /members or /activity to the end of the site’s url it takes them back to the home page but if they add /groups or /blogs they get to see those pages.

How can I fix this?