You are viewing limited content. For full access, please sign in.

Question

Question

Prevent Public Forms from appearing in Google Search results

asked on May 12, 2023

Hello everyone,

 

Is there a way I can prevent my Public Forms from appearing in Google Search results?

I know there is a html tag (noindex tag) that can prevent this but can I apply this tag to our Forms?

If can, how do I add this tag?

Or is there a specific way I can archive this ?

 

1 0

Replies

replied on May 15, 2023

What probably should work (though is unsupported) is editing the "C:\Program Files\Laserfiche\Laserfiche Forms\Forms\Views\Form\_FormLayout.cshtml" and add the below line inside the "<head>" element.  I believe that this will load the meta tag server side.

<meta name="robots" content="noindex">

3 0
replied on May 15, 2023 Show version history

I do not think that it will work since it is added through the document ready function, but if using the original legacy designer, you can add to the head element using JavaScript:

$(document).ready(function () {
  var m = document.createElement('meta'); 
  m.name = 'robots'; 
  m.content = 'noindex'; 
  document.head.appendChild(m);
});

Might be worth trying.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.