Hello, I need some script Whit this function For example i whant to redirect my user to google i use this url www.mysite.com/redirector.php?=http://google.com But before redirect show a page for example You will be redirected now to .... and below some ads XD Grettings
The link is: www.mysite.com/redirector.php?url=http://google.com // at your redirector.php ob_start(); // put this on the top just below <?php if ( $_GET['url'] != '') { $delay = 3; // in seconds header("Refresh: $delay; URL=".$_GET['url']); print 'You will be redirected now to '.$_GET['url']; // your ads here XD print ''; } PHP: But take note that people can access your website's pages too, like: when user type : www.mysite.com/redirector.php?=admin/, they can access your admin pages. to prevent this, use regex to check the $_GET['url'] first before allowing them to redirect