1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

How do I Disallow links in google?

Discussion in 'Black Hat SEO' started by ocrasorm, Jun 11, 2019.

  1. ocrasorm

    ocrasorm Junior Member

    Joined:
    Jul 30, 2015
    Messages:
    117
    Likes Received:
    6
    Occupation:
    Making life hell in the forum
    Location:
    Beach, California
    I am running a wordpress website. Yesterday i found that Google has started indexing a lot of pages of my websites that has not been created/published.

    Same content is showing on those pages too. I want to disallow links using robots.txt file that starts from ?widgetCacheId
     
  2. Hyper999

    Hyper999 Jr. VIP Jr. VIP

    Joined:
    Apr 14, 2019
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    The question is, why you have such specific url's? are you using some plugin for caching?
     
  3. SirLouen

    SirLouen Jr. VIP Jr. VIP

    Joined:
    Jan 17, 2015
    Messages:
    900
    Likes Received:
    303
    Gender:
    Male
    Home Page:
  4. ocrasorm

    ocrasorm Junior Member

    Joined:
    Jul 30, 2015
    Messages:
    117
    Likes Received:
    6
    Occupation:
    Making life hell in the forum
    Location:
    Beach, California
    Yes i am using wordpress questions answer plugin.
     
  5. ocrasorm

    ocrasorm Junior Member

    Joined:
    Jul 30, 2015
    Messages:
    117
    Likes Received:
    6
    Occupation:
    Making life hell in the forum
    Location:
    Beach, California

    I am using yahoo type question answer plugin for wordpress and there are more than 4000 pages/question submitted on the website. I want to disallow links start start with
    But if i put /warrior/?widgetCacheId* in robots.txt file, will google disallow ?widgetCacheId=0e718c5ddceb50accf0953a313fb7cd0&uiudisuidusi links? because i do not want to disallow other links such as
     
  6. Hyper999

    Hyper999 Jr. VIP Jr. VIP

    Joined:
    Apr 14, 2019
    Messages:
    108
    Likes Received:
    40
    Gender:
    Male
    This is what you need to put in your robots.txt file
    Disallow: /?*
    Then you should modify your url indexing preferences in google webmaster tools
    Site Configuration -> URL Parameters
    try to deindex them in https://www.google.com/webmasters/tools/url-removal tool
    this is temporary exclusion if you are not setting 404 answer on those url's