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

IP based redirection #2120

Open
noahboegli opened this issue May 9, 2024 · 1 comment
Open

IP based redirection #2120

noahboegli opened this issue May 9, 2024 · 1 comment
Labels
Milestone

Comments

@noahboegli
Copy link

Summary

For a given link, allow a conditional redirect based on the IP address & ranges of the person viewing the link.

For example

IP Addresses Redirect
134.134.132.131, 134.14.124.56 https://linka.com
44.44.132.131, 56.89.12.0/24 https://linkb.com
default https://defaultlink.com

Use case

In my company, we have several internal software that is not accessible from the internet.

For some important communications or tasks to complete, we provide the same "feature" on an external service or some of our software that is available on the internet.

For example, we want to collect feedback from employees. We create the survey on our intranet and in a forms provider (Google, Microsoft, etc.).
We'd like to be able to send an e-mail with one link, that would redirect the user to the correct form based on where he's accessing it from

  • Company public IP (our shlink is hosted in a 3rd party hosting provider, thus it's accessed by the internet even from the inside)
    • Redirect to intranet
  • External IP (mobile phones, home computer, etc.)
    • Redirect to 3rd party forms provider

I've looked at the code and with some time, I might be able to offer a pull request. Is that something that the project would benefit from in the upstream ?

@acelaya
Copy link
Member

acelaya commented May 9, 2024

This sounds like a good use case for dynamic rule-based redirects.

Feel free to up-vote here #2101 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants