Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Using HTTP_POST?

Status
Not open for further replies.

darrenl

Level 8
Legacy Platinum Member
Joined
Sep 22, 2003
Messages
1,856
Reaction score
4
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?
 

hotdog_pk

Level 6
Legacy Platinum Member
Joined
Mar 13, 2004
Messages
501
Reaction score
0
Darren06 said:
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?

how about HTTP_REFERER?
 

darrenl

Level 8
Legacy Platinum Member
Joined
Sep 22, 2003
Messages
1,856
Reaction score
4
Yea I know that that is how I SEO my other site. AbouT HTTP_REFERER I am unsure if it works.
 

theparrot

Level 6
Legacy Exclusive Member
Joined
Mar 24, 2004
Messages
589
Reaction score
0
yeah, it depends on how you set up the names, if they resolve directly to the web servers ip, or you are using frames or redirects
 

hotdog_pk

Level 6
Legacy Platinum Member
Joined
Mar 13, 2004
Messages
501
Reaction score
0
if you can use php you can post the domain.

so if your frame points to http://example.com/?r=example.net.

and you have the following in example.com/index.php ...
example script said:
<?php

$url = $_REQUEST['r'];
echo $url;

?>
... it will display the previous site.

This worked with namecheap when i was going to create and ultsearch clone.

If you are making an ultsearch clone and you have your own nameservers, you could use HTTP_HOST, yes.
 

darrenl

Level 8
Legacy Platinum Member
Joined
Sep 22, 2003
Messages
1,856
Reaction score
4
Im gonna use the get method instead.
 

MediaHound

Former DNF Admin
Legacy Exclusive Member
Joined
Feb 25, 2004
Messages
4,162
Reaction score
7
Want to know where you are getting all these members and form submissions from? Add in the info you are emailed, some environmental vars like this:

If your site is php, skip this setp;
If your page is html or htm, add
AddHandler server-parsed .htm .html
to your .htaccess file.
in WS_FTP type -a in the little box on the right and hit enter to see hidden files that begin with .
If your page is php,
or, if you are now parsing htm as php, read on:

<?php
$ip = $_SERVER['REMOTE_ADDR'];
$fullhost = gethostbyaddr($ip);
$referer = $HTTP_REFERER;

?>
<form name="user_data_display_privacy_policy" action="/cgi-bin/perlscript.pl" method="POST" language="JavaScript">
<input type="hidden" name="ip" value="<?php echo $ip; ?>">
<input type="hidden" name="fullhost" value="<?php echo $fullhost; ?>">
<input type="hidden" name="referer" value="<?php echo $referer; ?>">
<input type="hidden" name="recipient" value="[email protected]">
<input type="hidden" name="redirect" value="http://www.yourdomainormine.com/thank_you.php">
<input type="hidden" name="subject" value="Courtesy, Free-Templates.com">
<input type="hidden" name="print_blank_fields" value="1">
<input type="hidden" name="sort" value="order:ip,fullhost,referer,submit">
<input name="submit" type="submit" style="color: #1C5185; border: 1px solid #c0e9ab" value="Click Here To Submit Request">
</form>
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 3) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom