Tuesday, August 2, 2011

How to Encrypt URL


Here you can Encrypt URL with the help of  urlencode($string) and  urldecode( $string)
Is there a way I can encrypt a page URL and hide the data source url?
There are times when you need to to hide the real path, web address or URL to a file that you  sell for profit – ebooks, mp3′s, software  etc (digital products) – We have a simple solution for you to hide the Real File URL and Provide Download via a PHP Script.

Function :
function encriptURL($cabecera,$mensaje) {
        $cabecera=urlencode($cabecera);
        $mensaje=urlencode($mensaje);
        header("Location:".siteName."?string1=$string2&mensaje=$mensaje");
        exit;
     }

No comments:

Post a Comment