Guest User

Untitled

a guest
Jan 24th, 2020
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /* Get URL */
  3. $url = isset($_GET['url']) ? $_GET['url'] : 'unknown_url_can_put_alternative_url_here';
  4.  
  5. /* Decode URL */
  6. $url = urldecode($url);
  7.  
  8. /* Check that our url is an correct url */
  9. if (filter_var($url, FILTER_VALIDATE_URL)) {
  10. /* Do redirect */
  11. Header("Location: $url");
  12. }
RAW Paste Data