Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
Nuxt.js archivo robots.txt Múltiples rechazos por agente de usuario

Usando el módulo nuxt-robots de Nuxts, ¿cómo configuro múltiples rechazos por agente de usuario? Actualmente tengo:

 robots: () => { return { UserAgent: '*', Disallow: '/search/', Sitemap: (req) => `https://${req.headers.host}/sitemap.xml`, } },

pero necesito salida:

 User-agent: * Disallow: /search/ Disallow: /testimonials/ User-agent: MJ12bot Disallow: /search/ Disallow: /testimonials
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Si desea varios elementos, probablemente necesite usar una matriz.

¿No funciona algo como esto?

 robots: () => { return [ { UserAgent: '*', Disallow: '/search/', Sitemap: (req) => `https://${req.headers.host}/sitemap.xml`, }, { UserAgent: 'MJ12bot', Disallow: '/search/', Sitemap: (req) => `https://${req.headers.host}/sitemap.xml`, }, ] }

Me gusta el enfoque de matriz: https://github.com/fengsi-io/nuxt-robots#array

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!