Dynadot โ€” .com Transfer

Help to encrypt url

SpaceshipSpaceship
Watch

fandie

Account Closed
Impact
8
Hi

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

I have given an example below

http://www.namepros.com

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

:)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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?
PHP:
<?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
 
0
•••
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
 
0
•••
PHP:
<?php
$str = "String to encode";
$new = "";
for($i = 0; $i < strlen($str); $i++)
  $new .= "%".bin2hex(substr($str,$i,1));
echo $new;
?>
Haven't tested, but should work.
 
0
•••
Jim_ said:
PHP:
<?php
$str = "String to encode";
$new = "";
for($i = 0; $i < strlen($str); $i++)
  $new .= "%".bin2hex(substr($str,$i,1));
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:
<?php
$url = 'www.google.com';

for($i = 0; $i < strlen($url); $i++)
{
    $new .= '%' . bin2hex($url[$i]);
}

echo 'http://' . $new;
?>

Matt
 
0
•••
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:
0
•••
Demo:
http://mattjewell.com/test.php

Code:
PHP:
<?php

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:
0
•••
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.
 
0
•••
Mikor said:
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
 
0
•••
Thanks Matt for trying :)

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

Anyone else have any ideas
 
0
•••
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.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back