MasterACE14 Posted June 14, 2007 Share Posted June 14, 2007 I have been looking at different Methods of Encryption in PHP, but I still haven't found anything nice and basic to encrypt the URL of 1 page. I was thinking that maybe you could do something like. header(encrypted()) I dunno, just need something to encrypt the URL of this 1 page. Note: their is no form on the page. Otherwise this would be a much simplier task lol. But I don't need a form. Just need to encrypt the URL. The faster you reply the better thanks, Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/55542-url-encryption/ Share on other sites More sharing options...
mmarif4u Posted June 14, 2007 Share Posted June 14, 2007 Use urlencode() Quote Link to comment https://forums.phpfreaks.com/topic/55542-url-encryption/#findComment-274452 Share on other sites More sharing options...
MasterACE14 Posted June 14, 2007 Author Share Posted June 14, 2007 thats a start. Thanks I've been playing around with urlencode() and header() and I don't think its going to work. It does encrypt the URL, but it can be easily reversed, and its just not secure enough. also, is their an alternative to using header("Location: http://www.example.com/") I need to be able to change the current pages URL without redirecting. Thanks, Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/55542-url-encryption/#findComment-274476 Share on other sites More sharing options...
AbydosGater Posted June 14, 2007 Share Posted June 14, 2007 If you need to change the content but not the page why not look into AJAX? Set a link, when someone clicks it, it messes with some javascript functions that change the content with or without PHP functions. Quote Link to comment https://forums.phpfreaks.com/topic/55542-url-encryption/#findComment-274491 Share on other sites More sharing options...
MasterACE14 Posted June 14, 2007 Author Share Posted June 14, 2007 hmmm, I've been thinking about alternatives like AJAX, but I just want something basic, and don't really want to have to learn another Language to do 1 task. I have thought of Encrypting the URL, the other thing I thought that might work for security would be make a if statement that checks if a person got to my page from the right website, and if not it would redirect them to another page. Is that possible? and is it safe and secure? Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/55542-url-encryption/#findComment-274499 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.