NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Help to encrypt url

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-27-2007, 03:25 PM THREAD STARTER               #1 (permalink)
Account Closed
 
fandie's Avatar
Join Date: May 2004
Location: uk
Posts: 1,773
fandie is just really nicefandie is just really nicefandie is just really nicefandie is just really nice
 



Help to encrypt url


Hi

Has anyone any code that will hex your url in the browser

I have given an example below

http://%77%77%77%2e%6e%61%6d%65%70%72%6f%73%2e%63%6f%6d

Diverts to namepros

I am looking for some kind of code or program that i install on my hosting that will keep my url encrypted

I will also pay someone to do this for me also

Thanks

:-)
fandie is offline  
Old 02-27-2007, 04:50 PM   #2 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Not quite sure what you mean when you say, keep your URL encrypted... Do you mean keep the URL in hex format while someone is browsing, so they cannot see your domain easily?
????: NamePros.com http://www.namepros.com/programming/299375-help-to-encrypt-url.html
PHP Code:
<?php
$printme
=bin2hex("www.namepros.com");
echo 
$printme;
?>
That will convert a text string (or url) to hex, although, i'm not sure of the best way to go about inserting the %'s required for the link to work lol
BillyConnite is offline  
Old 02-28-2007, 04:05 AM THREAD STARTER               #3 (permalink)
Account Closed
 
fandie's Avatar
Join Date: May 2004
Location: uk
Posts: 1,773
fandie is just really nicefandie is just really nicefandie is just really nicefandie is just really nice
 



Thanks i will try that out, what happens is is i want the true url of the wesbsite hidden and coded in the ie browser, if this is possibel
fandie is offline  
Old 02-28-2007, 04:27 AM   #4 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
PHP Code:
<?php
$str 
"String to encode";
$new "";
for(
$i 0$i strlen($str); $i++)
????: NamePros.com http://www.namepros.com/showthread.php?t=299375
  
$new .= "%".bin2hex(substr($str,$i,1));
echo 
$new;
?>
Haven't tested, but should work.
__________________
ask me about the internet
Jim_ is offline  
Old 02-28-2007, 07:25 AM   #5 (permalink)
Senior Member
Join Date: Dec 2006
Location: England
Posts: 1,568
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
 


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by Jim_
PHP Code:
<?php
$str 
"String to encode";
$new "";
for(
$i 0$i strlen($str); $i++)
  
$new .= "%".bin2hex(substr($str,$i,1));
????: NamePros.com http://www.namepros.com/showthread.php?t=299375
echo 
$new;
?>
Haven't tested, but should work.
You don't need to use substr to get the charactor, you can just use the string as an array:

PHP Code:
<?php
$url 
'www.google.com';

for(
$i 0$i strlen($url); $i++)
????: NamePros.com http://www.namepros.com/showthread.php?t=299375
{
    
$new .= '%' bin2hex($url[$i]);
}

echo 
'http://' $new;
?>
Matt
Matthew. is offline  
Old 02-28-2007, 04:04 PM THREAD STARTER               #6 (permalink)
Account Closed
 
fandie's Avatar
Join Date: May 2004
Location: uk
Posts: 1,773
fandie is just really nicefandie is just really nicefandie is just really nicefandie is just really nice
 



Matt

I dont suppose you have demo of this working

Also is it possible to make the url change each time a new vistor goes to the site

I cant seem to get to work my end


:-)
Last edited by kerr; 02-28-2007 at 04:28 PM.
fandie is offline  
Old 03-01-2007, 12:58 PM   #7 (permalink)
Senior Member
Join Date: Dec 2006
Location: England
Posts: 1,568
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
 


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Demo:
http://mattjewell.com/test.php

Code:
PHP Code:
<?php
????: NamePros.com http://www.namepros.com/showthread.php?t=299375

if(strlen($_POST['submit']) > 0)
{
    echo 
'http://';
    
    for(
$i  0$i strlen($_POST['url']); $i++)
    {
        echo 
'%' bin2hex($_POST['url'][$i]);
    }
}
else
{
    
?>
    
    <form action="<?=$_SERVER['HTTP_SELF']?>" method="post">
    http://<input type="text" name="url" value="" /><br />
    <input type="submit" name="submit" value="submit" />
    </form>
    
    <?php
}
?>
Matt
Last edited by Matthew.; 03-01-2007 at 01:08 PM.
Matthew. is offline  
Old 03-01-2007, 02:09 PM   #8 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




I think kerr means keep the hex in the browser's navigation bar, NOT replace it with the actual url when the site is loaded.
Barrucadu is offline  
Old 03-01-2007, 02:12 PM   #9 (permalink)
Senior Member
Join Date: Dec 2006
Location: England
Posts: 1,568
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
 


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by Mikor
I think kerr means keep the hex in the browser's navigation bar, NOT replace it with the actual url when the site is loaded.
Yeah he PM'd me about this, it can't be done using this method.

Matt
Matthew. is offline  
Old 03-01-2007, 04:46 PM THREAD STARTER               #10 (permalink)
Account Closed
 
fandie's Avatar
Join Date: May 2004
Location: uk
Posts: 1,773
fandie is just really nicefandie is just really nicefandie is just really nicefandie is just really nice
 



Thanks Matt for trying :-)

Trying to keep the hex in the browser. I have seem some sites with it

Anyone else have any ideas
fandie is offline  
Old 03-04-2007, 11:03 PM   #11 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Kerr,
I see what you are wanting to do now, however this is a browser thing. Depending on the browser, usually they will check the URL to see if its hex or not, if it is, it will automatically convert it to the normal URL you can see.

As far as I know, you can't change this on the server's end, it's a client thing.
BillyConnite is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:23 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger