Hide from Google Search

Home Forums Legacy Support Support queries How-to & Troubleshooting Hide from Google Search

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #386620
    nadzhatulothman
    Participant
    I'm still facing this issue. please help solve this problem
    #386621
    nadzhatulothman
    Participant
    This reply has been marked as private.
    #386624
    Anshuman Sahu
    Keymaster
    hi this is not due to wplms , its due to wordpress and google itself . There are variety articles on this : https://www.wpbeginner.com/wp-tutorials/how-to-disable-image-attachment-pages-in-wordpress/ https://woorkup.com/wordpress-image-attachment-page/ you can use these to block access to their media , also you can use wplms s3 addon to enable assignment uploads on s3 which cannot be indexed.
    #386640
    nadzhatulothman
    Participant
    but many page also leak @Alex like list student
    #386655
    Anshuman Sahu
    Keymaster
    I have edited your robots.txt file in your site root to now allow bots. to index profile further . You also need to re-submit your sitemap.xml to google . also please add this custom code in your wplms-customizer.php file in wplms customizer plugin :
    add_Action('template_redirect',function(){
      $user_id = bp_displayed_user_id();
      if(!empty($user_id) && !user_can($user_id,'edit_posts') && is_user_logged_in()  &&  $user_id!==get_current_user_id()){
        wp_die('Profile cannot be accessed');
      }
    },1);
    this code will allow user to see only instructor's profile and their own when logged in to wordpress otherwise it will block the access to profile.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Hide from Google Search’ is closed to new replies.