NameSilo

Using HTTP_POST?

SpaceshipSpaceship
Watch

DSL

Established Member
Impact
6
How would I make the url of a domain appear in a page if it was redirected? What variable or HTTP_POST method would I use?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
<?
echo $_SERVER['HTTP_HOST'];
?>

that will echothe domain you viisited from

then what you could maybe do, is then say if the redirect link was http://bob.com/bob.php

you could change the code to above code to
<?
$url = $_SERVER['HTTP_HOST'];
?>

and in the redicrect url (so after bob.php)

add <? echo "?url=$url"; ?>

now open bob.php on the server and place this

<?
$url = $_GET['url'];
echo $url;

?>

the link would appear as

redirect link would hcnage to

http://bob.com/bob.php?url=yourdomain.com
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back