Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Primo
    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Primo
    3. Knowledge Articles
    4. How to add user-agent / bot to robots.txt file to prevent crawling / trolling

    How to add user-agent / bot to robots.txt file to prevent crawling / trolling

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Primo

    Desired Outcome Goal:
    Add a specific user-agent / bot to the robots.txt file to prevent crawling or trolling

    Procedure:
    IMPORTANT NOTE: THIS IS RELEVANT FOR LOCAL CUSTOMERS ONLY! IF YOU ARE A DIRECT-DEDICATED OR TOTAL-CARE CUSTOMER PLEASE CONTACT EXLIBRIS SUPPORT FOR ASSISTANCE WITH THIS PROCESS!

    See "Additional Information" section for further details on the robots.txt file

    The path to locate the robots.txt file is: /exlibris/primo/p4_1/ng/primo/home/system/tomcat/search/webapps/ROOT/robots.txt

    By default (OTB) the file contains:
    ---
    # Disallow all robots from this directory structure.
    User-agent: *
    Disallow: /
    ---

    This means that all robots should be disallowed from the entire site. If you continue to experience issues with a specific robot trolling/crawling your site, this user-agent can be added specifically to the file.

    Using the above format, user-agents/bots can be added. For example:
    ---
    # Disallow all robots from this directory structure.
    User-agent: Googlebot
    Disallow: /
    ---

    The robots.txt file can only be edited as root user.

    Additional Information

    Before making any changes to this file, we highly recommend researching the topic.
    See: http://en.wikipedia.org/wiki/Robots_exclusion_standard


    • Article last edited: 6/3/2014
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to Add Open Access Indication and Facet for Local Records
      • How to allow production Alma to return responses to a sandbox Primo
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Content Type
      Knowledge Article
      Language
      English
      Product
      Primo
    2. Tags
      1. contype:kba
      2. Prod:Primo
      3. Type:General
    1. © Copyright 2026 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved