Location: PHPKode > scripts > TOTAL URLEncrypt > total-urlencrypt/urlencrypt.php
<?php

	/* 
	  This is a very simple script to FULLY encrypt your URL
	  
	  Email: hide@address.com
	  URL(NORMAL): http://staff.k-designs.com.sg/basica/
	  URL(ENCRYPTED): http://%73%74%61%66%66%2e%6b%2d%64%65%73%69%67%6e%73%2e%63%6f%6d%2e%73%67/%62%61%73%69%63%61/ 
	  
	*/

	function URLEncrypt($URL) {
	
		$Escaped = "";		

		for ($i = 0; $i < strlen($URL); $i++) {
			
			if (substr($URL, $i, 1) == "/") {
				$HEXConv = "/";
				$Escaped = $Escaped . $HEXConv;
				$i += 1;
				if ($i >= strlen($URL)) break;
			}
			
			$HEXConv = DecHex(ord(substr($URL, $i, 1)));
			$Escaped = $Escaped . "%$HEXConv";
		}

		return $Escaped;

	}

	function phpNavigate($URL) {
		print "<script language=javascript>location.href='$URL'</script>";
	}
	
	$TURL = "http://" . URLEncrypt("staff.k-designs.com.sg/basica/");
	phpNavigate($TURL);
	
?>



Return current item: TOTAL URLEncrypt