disabling the eclipse scout application from indexing by robots [message #1808674] |
Fri, 28 June 2019 09:09  |
Eclipse User |
|
|
|
Hi,
My Eclipse Scout application will be exposed via internet. However, I would not like it to appear as a result of search in popular web searches (like google). According to the HTML standard, for this purpose you can use, for example, one of the following methods:
- Put in the HTML code the following fragment in the <head> section of each html page:
<meta name="robots" content="noindex">
- Return the appropriate parameter ( X-Robots-Tag: noindex) in the header of each HTTP response
What is the best way to achieve similar results in Eclipse Scout framework?
|
|
|
Re: disabling the eclipse scout application from indexing by robots [message #1809067 is a reply to message #1808674] |
Mon, 08 July 2019 05:07  |
Eclipse User |
|
|
|
Hi Krzysztof
Since Scout is a single page app (SPA) and all of the HTML you see on the screen is generated by client-side JavaScript you don't have to worry about search indices, because a SPA cannot be indexed by a robot. You can use standard methods to control search robots, simply put the robots.txt in the folder /src/main/resources/WebContent. In the same directory you'll find the "index.html", which is a rather static file in every Scout application and add the meta tags you mentioned in your post.
|
|
|
Powered by
FUDForum. Page generated in 0.03784 seconds