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?

Paul KonstanskiProject SpecialistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yep quite a common way of doing it.
You will quite often see it being used for payment providers.
Paul KonstanskiProject SpecialistAuthor 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.
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;">

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Paul KonstanskiProject SpecialistAuthor 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?
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.
Paul KonstanskiProject SpecialistAuthor 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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.