chrometweaks.org

Is iPage good place for Asp.net hosting?

Click Here To View All Answers...


Quick question: Is iPage good place for Asp.net hosting? Thanks for any response. Another question I got... I have tried $_SERVER['HTTP_REFERER'] but it does not seem to work..

Help thanx...

Comments (128)

Yep, but... you might wanna make sure and wait for someone else to confirm this as I am not quite sure. Better yet, why don't you contact the iPage guys because they can assist you better...

Comment #1

Does the HTTP_REFFER var actually have a value?.

Take a look at.

Var_dump($_SERVER);.

To see if it's populated...

Comment #2

I have tried echoing it and also other conertations but no luck - any idea what variable I should be looking at ? .

This post has been edited by.

Yesudo.

: 18 April 2004, 19:51..

Comment #3

Your looking at the correct variable.. however how are you viewing the page?.

The referrer var is only populated when a link is clicked and will be empty if you just view the page in the browser...

Comment #4

Code now:.

$tapps_referer = "http://www.yesudo.com/test/login.php";.

// referer check.

If (isset($tapps_referer) && $tapps_referer!="").

{.

$referer=$HTTP_SERVER_VARS['HTTP_REFERER'];.

If ($i=strpos($referer,"?")).

{.

$referer= substr($referer,0,$i);.

}.

If ($tapps_referer != $referer).

{.

Header ("Location: index.php");.

}.

}.

So if you click Continue on this page:.

Http://www.yesudo.com/test/login.php.

It should take you to:.

Http://www.yesudo.co...ate_account.php.

But it takes you to index.php..

That should work shouldn't it Mark - or am I missing the point ? .

Thanx..

This post has been edited by.

Yesudo.

: 18 April 2004, 20:22..

Comment #5

Tried it and it took me to create account...

Comment #6

Very odd !!.

Same for anyone else ? .

Thanx...

Comment #7

Takes me to creat account .php.

What browser are you using and what verison.

Salam..

Comment #8

Not sure what your trying to do there but you might try saving this value at the very begining of your script because some php functions will erase it..

$referer=$HTTP_SERVER_VARS['HTTP_REFERER'];.

This is what you shoud get from clicking the link above..

Echo $HTTP_SERVER_VARS['HTTP_REFERER'];.

>http://forums.oscommerce.com/index.php?showtopic=88731.

Echo $HTTP_SERVER_VARS['REQUEST_URI'];.

>http://www.yesudo.com/test/login.php..

Comment #9

Thanx everyone..

Found out it was a privacy setting on Norton AV interfering. Working now...

Comment #10

Hello Dave,.

On a membership only iPage site the member has to make a payment via paypal b4 creating an account..

The payment element of this can be circumvented if someone goes straight to the create_account screen - so am trying to stop this..

Am nearly there - Thanx...

Comment #11

I dont think you can use referer for security purposes it can easily be spoofed..

<?php.

$ch = curl_init();.

Curl_setopt($ch, CURLOPT_REFERER, "http://www.yesudo.com/test/login.php");.

Curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);.

Curl_setopt ($ch, CURLOPT_URL, "http://www.yesudo.com/test/login.php");.

$result =curl_exec ($ch);.

Echo $result;.

Curl_close ($ch);.

?>..

Comment #12

I have tried $_SERVER['HTTP_REFERER'] but it does not seem to work..

Help thanx...

Comment #13

Now have:.

$tapps_referer = "http://www.yesudo.com/";.

// referer check.

If (isset($tapps_referer) && $tapps_referer!="").

{.

 $referer=$HTTP_SERVER_VARS['HTTP_REFERER'];.

 if ($i=strpos($referer,"?")).

 {.

 $referer= substr($referer,0,$i);.

 }.

 if ($tapps_referer != $referer).

 {.

 header ("Location: index.php");.

 }.

 .

}.

But still doesn't work if referer is correct - i.e..

Http://www.yesudo.com/..

Comment #14


This question was taken from a support group/message board and re-posted here so others can learn from it.