Write a php file such as baidu.com/a.php? Url = google.com will jump to google immediately to write a php file & nbsp; for example & nbsp; baidu.com/a.php? Url = google.com & nbsp; will jump to google to write a php file, such as baidu.com/a.php? Url = google.com will jump to google Now
Write a php file such as baidu.com/a.php? Url = google.com will jump to google Now
------ Solution --------------------
A. php
$ Url = $ _ GET ['URL'];
If (! Empty ($ url) header ('Location: http: // '. $ url );
Exit;
?>
A. php? Url = amysql.com
In doing so, you should note that you should not be pulled by others and jump to some non-harmonious websites.
------ Solution --------------------
$ Url = $ _ GET [url];
Header ("Location: http: //". $ url );
?>
------ Solution --------------------
$ Url = urldecode ($ _ GET [url]);
Header ("Location: http: //". $ url );