-1

here are two set of conditions and I want to block all url with /search/jobdescription? and search/jobdescription/

1) http://<--sitename-->/search/jobdescription?id=0154613&css=a&act=a

2) http://<--sitename-->/search/jobdescription/id/0154613/css/a/act/a

How to block both occurances in robot.txt file.

Thanks

Manojkumar
  • 1,351
  • 5
  • 35
  • 63

2 Answers2

2

As simple as:

User-agent: *
Disallow: /search/jobdescription
Aziz
  • 20,065
  • 8
  • 63
  • 69
0

You can also use the X-Robots-Tag HTTP header to prevent indexing.

Yohann
  • 6,047
  • 3
  • 26
  • 33