Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 10-10-2007, 06:49 PM
nissangtr nissangtr is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 3
Default https question

Hi,

I'm not very familiar with https/ssl. If I get a private ssl, and put a php file in the https folder, will I still be able to access files above the root folder from the php file?

For example, if I have a http://domain.com/get.php I can use get.php to access /home/domain.com/private/files, will it work the same if I put get.php in httpS://domain.com/get.php ?

Also, if I have a login.php file with variables login.php?username=enterusername&password=enterpas s , does putting the login.php file in https help prevent the username and password variables/input from being displayed in the url ?

I want a way to secure user login and I know using https/ssl is the common way to go, but I've never used it before so am not sure how to it works compared to regular http.

Thanks for any help
Reply With Quote
  #2  
Old 10-10-2007, 06:58 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https question

You don't want to keep a separate https folder usually. Just keep everything in your same public_html, and have the links to some areas be to https (or use .htaccess to force the connection to use https--you can find the syntax for this by searching the forum).

Most everything you do on http you do the same way on https. Just make sure you know that a certificate bought for www.domain.com isn't also valid for just domain.com, so be careful about your links (and again, you can use .htaccess to force people to www). https really happens after php and all that is processed, and is just a different way for your information to go back and forth between the browser and the server.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #3  
Old 10-10-2007, 07:31 PM
nissangtr nissangtr is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 3
Default Re: https question

Quote:
Just keep everything in your same public_html, and have the links to some areas be to https
Oh, so http and https can be used to access the same files in the public_html folder ? I thought http and https are set to use different folders. If so, how would I create folders/files that can only be accessed by http or only accessed by https ?

Thanks again.
Reply With Quote
  #4  
Old 10-10-2007, 07:35 PM
esl's Avatar
esl esl is offline
Emperor Croc
 
Join Date: Jan 2005
Location: Proud to be an American - USA
Posts: 2,227
Default Re: https question

Quote:
Originally Posted by nissangtr View Post
Oh, so http and https can be used to access the same files in the public_html folder ? I thought http and https are set to use different folders. If so, how would I create folders/files that can only be accessed by http or only accessed by https ?

Thanks again.
Yes, http and https can both be used to access the public_html directory with a valid SSL certificate. to HG!
__________________
Have a great day,
Evan
Reply With Quote
  #5  
Old 10-10-2007, 07:57 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https question

Quote:
Originally Posted by nissangtr View Post
If so, how would I create folders/files that can only be accessed by http or only accessed by https ?
Use .htaccess to force it on or off in certain areas. Generally you don't want to force it off, just on.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #6  
Old 10-10-2007, 08:11 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Supreme Croc
 
Join Date: Sep 2006
Location: up north
Posts: 6,843
Default Re: https question

Quote:
Originally Posted by nissangtr View Post
Oh, so http and https can be used to access the same files in the public_html folder ?
Think of a house on a corner. Doors on each street but they enter the same house. Same content, different address.
Reply With Quote
  #7  
Old 10-10-2007, 08:12 PM
esl's Avatar
esl esl is offline
Emperor Croc
 
Join Date: Jan 2005
Location: Proud to be an American - USA
Posts: 2,227
Default Re: https question

Quote:
Originally Posted by gwyneth View Post
Think of a house on a corner. Doors on each street but they enter the same house. Same content, different address.
LOL, you are good at analogies!
__________________
Have a great day,
Evan
Reply With Quote
  #8  
Old 10-10-2007, 08:59 PM
nissangtr nissangtr is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 3
Default Re: https question

Ok, I get how it works now!

Thanks everyone !
Reply With Quote
  #9  
Old 10-10-2007, 09:18 PM
gwyneth's Avatar
gwyneth gwyneth is offline
Supreme Croc
 
Join Date: Sep 2006
Location: up north
Posts: 6,843
Default Re: https question

Quote:
Originally Posted by esl View Post
LOL, you are good at analogies!
Thanks! Not everyone here appreciates them.
Reply With Quote
  #10  
Old 10-10-2007, 09:36 PM
esl's Avatar
esl esl is offline
Emperor Croc
 
Join Date: Jan 2005
Location: Proud to be an American - USA
Posts: 2,227
Default Re: https question

Quote:
Originally Posted by gwyneth View Post
Thanks! Not everyone here appreciates them.
I think the problem is not everyone here understands them.

They are very helpful is the person reading them has logic skills.
__________________
Have a great day,
Evan
Reply With Quote
  #11  
Old 10-10-2007, 10:11 PM
dkconst dkconst is offline
Hatchling Croc
 
Join Date: Dec 2006
Posts: 25
Default Re: https question

Quote:
Originally Posted by esl View Post
I think the problem is not everyone here understands them.

They are very helpful is the person reading them has logic skills.
Well 90% of the readers here are probably going "Huh?!?"

Reply With Quote
  #12  
Old 10-11-2007, 03:37 AM
secure's Avatar
secure secure is offline
Hatchling Croc
 
Join Date: Sep 2007
Posts: 46
Default Re: https question

Quote:
Originally Posted by dkconst View Post
Well 90% of the readers here are probably going "Huh?!?"

LOL, not only that you have good analogy and logic, you've got a good sense of humor too! Most people I know don't have mixed logic and humor.
Reply With Quote
  #13  
Old 04-21-2008, 03:52 PM
rolewski's Avatar
rolewski rolewski is offline
Hatchling Croc
 
Join Date: Apr 2008
Location: Mexico
Posts: 2
Default Re: https question

Hello there,

I have to use an image(logo) for PayPal from secure location, how I can do it on HG?

Please give me step by step non-programmer explanation how to set up https://mydomain.com/images/logo_for_paypal.jpg link

Thanks

M.
Reply With Quote
  #14  
Old 04-21-2008, 05:26 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: https question

Try this link-- more options on the right:
https://www.paypal.com/us/cgi-bin/we...kLogos-outside

All those images are using https.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #15  
Old 04-21-2008, 08:37 PM
Goddess Dix's Avatar
Goddess Dix Goddess Dix is offline
King Croc
 
Join Date: Aug 2006
Location: KS, USA
Posts: 1,498
Default Re: https question

Quote:
Originally Posted by gwyneth View Post
Thanks! Not everyone here appreciates them.
i've often wondered if you didn't have a background in real estate or something, gwyn. you seem to favor building analogies.
Reply With Quote
  #16  
Old 04-21-2008, 11:08 PM
rolewski's Avatar
rolewski rolewski is offline
Hatchling Croc
 
Join Date: Apr 2008
Location: Mexico
Posts: 2
Default Re: https question

Quote:
Originally Posted by slapshotw View Post
Try this link-- more options on the right:
https://www.paypal.com/us/cgi-bin/we...kLogos-outside

All those images are using https.
In oposite, those are logos of paypal to put in my website, I need my logo to put in paypal website (where you generate charge), please check the sample link on my original post.

thx

M.
Reply With Quote
  #17  
Old 04-21-2008, 11:29 PM
striddy's Avatar
striddy striddy is offline
Veteran Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 4,040
Default Re: https question

Quote:
Originally Posted by rolewski View Post
In oposite, those are logos of paypal to put in my website, I need my logo to put in paypal website (where you generate charge)
Firstly, do you have a SSL certificate? HG has a free shared which you can use, but that shows your shared IP not domain name. Or you can purchase your own which will show your domain name.

Secondly, SSL needs to be is installed (if you purchased your own). Contact HG support for this.

Thirdly, to implement SSL, just use the link as you showed in your post when setting up your Paypal header image.

For more info, check Paypal Website Payments Guide PDF (beware 4.5Mb link)

https://www.paypalobjects.com/WEBSCR...ationGuide.pdf
__________________
- David
Reply With Quote
  #18  
Old 10-27-2010, 03:50 PM
capson capson is offline
Hatchling Croc
 
Join Date: Oct 2010
Posts: 1
Default Re: https question

I had the same problem with IE showing a warning message on Paypal checkout when I used my custom logo on Paypal checkout page that my logo was not using SSL/HTTPS.

What you do is this. All Hostgator accounts have two URL's.

1.
Code:
http://www.YOURDOMAIN.com
and

2.
Code:
https://SERVERNAME.hostgator.com/~USERNAME
As you can see, the first does not use SSL and the second does. It uses the shared SSL which is free. The servername is something like GATOR123. You can find your servername in the cPanel, at the bottom left in the menu. Your username is the same username you use to login to your cPanel. So the SSL URL would look something like this:

Code:
https://gator123.hostgator.com/~capson/
Now to use your custom Paypal logo, just put this in your Paypal account:

Code:
https://gator123.hostgator.com/~capson/images/paypal_logo.jpg
And since you are not using this SSL URL for other than your Paypal custom logo, you don't have to worry about your customers seeing a not so pretty URL.

Last edited by capson; 10-27-2010 at 03:57 PM.
Reply With Quote
  #19  
Old 12-29-2010, 03:45 AM
ericpepin ericpepin is offline
Hatchling Croc
 
Join Date: Dec 2010
Posts: 5
Default Re: https question

Quote:
Originally Posted by gwyneth View Post
Think of a house on a corner. Doors on each street but they enter the same house. Same content, different address.
Yes nice answer its just a different way to access the same file. I think http:// and https:// are same destination files folder Thanks.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 03:52 AM.