0

I'm looking to find a way to redirect a page with PHP to another url based on it's sequence, like so

http://example.com/re.php?=http://google.com

The page would redirect to google.com. How would I do this?

1 Answer 1

3

url would be more like http://example.com/re.php?url=http://google.com

re.php would look something like:

header('Location: ' . $_GET['url']);

Just a guideline.

Sign up to request clarification or add additional context in comments.

2 Comments

yep. Don't redirect to any page. Check the target! owasp.org/index.php/Open_redirect
This might be relevant.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.