Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
192 views
in Q2A Core by

I want to get the maximum performance of my website

 I have started using CloudFlare but lately I have noticed that

 Google Search Console when I use CloudFlare CDN

 Shows the sitemap error of my website and the robots.txt file

 Google doesn't show up saying there are no files on my website and

 When I remove my website from Cloudflare

 This is how I fix this problem when I use my own hosting

 Hope you can use CloudFlare without any problems

 Get everyone's opinion.

by
What is the error is gives from robots.txt? There is no robots.txt provided with Q2A, you'll need to make your own.
by
–1
I have uploaded the robots.txt file to my cpanel


User-agent: *
Disallow: /*/login
Disallow: /*?qa-rewrite=*
Disallow: /*/forgot
Disallow: /*/register
Disallow: /*/questions/*?sort=views&start=*
Disallow: /*/questions?sort
Disallow: /*/cgi-bin/*
Disallow: /*/questions?start=*
Disallow: /*/questions?sort=*
Disallow: /*/search?q=*
Disallow: /search/*
Disallow: /?s=*
Disallow: /search/?query=*
Disallow: /?qa=user
Disallow: /?qa=users
Disallow: /ip/*
Disallow: /login
Disallow: /ask
Disallow: /forgot
Disallow: /register
Disallow: /admin
Disallow: /tag
Disallow: /tags
Disallow: /users
Disallow: /user
Disallow: /message/

User-agent: *
Allow: /ads.txt

# allow google image bot to search all images
User-agent: Googlebot-Image
Allow: /*
Sitemap: https://eprosno.com.bd/sitemap.xml
by
But what is the actual error?

1 Answer

0 votes
by

 Google Search Console shows this error in my sitemap when I use CloudFlare CDN. And when I use my personal hosting it goes right.How can I use CloudFlare CDN without any restrictions?

by
If the problem is with cloudflare, you'd better ask Cloudflare or Cloudflare community. A quick search suggests that you should disable modsecurity. Search for yourself.
...