How do I Disallow links in google?

ocrasorm

Junior Member
Joined
Jul 30, 2015
Messages
117
Reaction score
6
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.

example.com/warrior/?widgetCacheId=66e9f818d503abc46d28e5c8fa09af6d&hjfhdjfhdfjdhfjhdjf

example.com/warrior/?widgetCacheId=0e718c5ddceb50accf0953a313fb7cd0&uiudisuidusi

example.com/warrior/?widgetCacheId=66e9f818d503abc46d28e5c8fa09af6d&576564567546

Same content is showing on those pages too. I want to disallow links using robots.txt file that starts from ?widgetCacheId
 
The question is, why you have such specific url's? are you using some plugin for caching?
 
You can restrict that with robots.txt
just put something like /warrior/?widgetCacheId*
Also you can restrict parameters on Google Search Console:
https://support.google.com/webmasters/answer/6080548?hl=en


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
example.com/warrior/?widgetCacheId=0e718c5ddceb50accf0953a313fb7cd0&uiudisuidusi

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
example.com/warrior/this-is-a-test-post
 
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
 
Back
Top