How to prevent site indexing by search bots with such a link

site.ru/post-gigant-3.html?ordering=date_pub&orderto=asc

Where is present

? ordering = date_pub & orderto = asc

the search engine is not indexed to allow for indexing in this form

site.ru/post-gigant-3.html

    2 answers 2

    Ban all unnecessary urls:

    //Запретить урлы содержащие ordering= в урл Disallow: *ordering=* //Запретить урлы содержащие orderto= в урл Disallow: *orderto=* 

    Well, and so on

      Use the design:

       Disallow: /*?ordering=*&orderto=* 

      or

       Disallow: /*.html?ordering=*&orderto=*