• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

Hide url from clickable link in php

In order to use a third party service, I need to provide a clickable link on my Website that will take the customer to a third party site but I need to mask the URL so my customer can't see it.

I use php and what I'm thinking is they'll click a link on my page that will then take them to a php page that will then load the content into a frame or something. I haven't researched this yet but is this the way to go to accomplish this?

Thanks.
0
pkonstan1
Asked:
pkonstan1
  • 3
  • 3
1 Solution
 
GaryCommented:
Yep quite a common way of doing it.
You will quite often see it being used for payment providers.
0
 
pkonstan1Author Commented:
I'm not real familiar with how to open up the iFrame.  Is there a simple tutorial or instruction on how to do this. Sorry I wasn't real specific with the question.
0
 
GaryCommented:
In your php page that the link links to just add the following entering your src url

<iframe src="" style="overflow:hidden;border:0;height:100%;width:100%;position:absolute;top:0px;left:0px;">
</iframe>

Open in new window

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
pkonstan1Author Commented:
I am doing some testing but what I'm finding is that if I view the source code or use the F12 debugger on the browser, I can still see the URL.  Is there anyway to hide that?
0
 
GaryCommented:
No.
0
 
Ray PaseurCommented:
I need to mask the URL so my customer can't see it
My first question would be "What are you trying to hide?"  Once the client is directed to the new URL, don't you think they will figure out that their browser was redirected?  This has the feeling of a phishing scam, and I would be very reluctant to design an application that did not clearly tell the client what services were being used.
0
 
pkonstan1Author Commented:
Sorry for slow reply. I was on the road.

Here's the deal. If it was "my design" it would all be done via a PHP Curl API call to a remote server to grab the login. But the way this company is set up, it requires that I login via their site with a username and password. And the only way to do that is to send it as a part of the URL. Its not even encrypted so very poor design. They've got a new generation of the software being worked on, but that's a few months away. In the mean time we have to live with this.

So that's why I'm creating random usernames and passwords. I'm just trying to explore options. I pretty much assumed there wasn't a clean way to hide where you were going because how can you get to someplace that you don't know where it is...

In any case thanks for the input and confirmation of what I thought to be true.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now