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

Script for checking longUrl redirect #1788

Open
gweiying opened this issue Mar 9, 2022 · 0 comments
Open

Script for checking longUrl redirect #1788

gweiying opened this issue Mar 9, 2022 · 0 comments

Comments

@gweiying
Copy link
Contributor

gweiying commented Mar 9, 2022

We've discussed the possibility of go.gov.sg links that directs to domain A, where domain A redirects to domain B.

This can be potentially misused by agency users who leave the service but own domains like A (where they can set their custom redirects to B).

As @yong-jie has suggested, a solution can be to periodically run a script to check that long links do not return 301. Other things that we can check with such a script is whether links return 404, i.e. broken links.

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

No branches or pull requests

1 participant