Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for ShortLinks to be allowed in robots.txt #955

Closed
the-hotmann opened this issue Jan 7, 2021 · 2 comments · Fixed by #1091
Closed

Add option for ShortLinks to be allowed in robots.txt #955

the-hotmann opened this issue Jan 7, 2021 · 2 comments · Fixed by #1091
Labels
Milestone

Comments

@the-hotmann
Copy link

the-hotmann commented Jan 7, 2021

I just noticed that in the robots.txt EVERYTHING is disallowed.

Now my situation is the following one:

I use a shortLink generated with Shlink on my Website as Menu-Link to track it and to have a short link in it. Google noticed this and crawled it. Now as the link is disallowed it warned me about that it is getting displayed on Google even it is basically blocked by the robots.txt.

Actually Google is doing right by crawling and displaying it as I want this. To not confuse Google I would like to have an option to select if the Shortlink should be crawlable or not.
If it should be crawlable (then it must not be a secret, but public link!) it should be excluded from the disallow of the robots.txt

Notice: this will reveal/expose all links that should be crawlable as they have to be mentioned in the robots.txt so if the link is not getting used publicly or is created as a secret link it should NOT be marked as crawlable.
Also: standardvalue of "crawlable" should ne false or 0

The robots.txt then should be created, or overwritten so if new crawlable links are getting added later it will be updated.

Could look like this:
Shlink Crawlable

Shlink Crawlable

@the-hotmann the-hotmann changed the title Add option to be allowed in robots.txt Add option for ShortLinks to be allowed in robots.txt Jan 7, 2021
@acelaya
Copy link
Member

acelaya commented Jan 7, 2021

This is something nice to have.

The robots.txt file was added at some point as it is since it could be considered a sensitive default.

Of course it gives very little flexibility this way. Your suggestion would be useful.

@acelaya acelaya added this to the 2.7.0 milestone Jan 7, 2021
@acelaya
Copy link
Member

acelaya commented May 22, 2021

Feature merged. Will be part of Shlink v2.7.0, and supported on shlink-web-client 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants