SHARE
TWEET

Untitled

a guest Jan 24th, 2020 58 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top