Can PHP help with masking URLs?

This is a discussion on Can PHP help with masking URLs? within the PHP Language forums, part of the PHP Programming Forums category; Hi, Not sure how this is done, but since our application is written in PHP, I thought I'd ask ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2008
laredotornado@zipmail.com
 
Posts: n/a
Default Can PHP help with masking URLs?

Hi,

Not sure how this is done, but since our application is written in
PHP, I thought I'd ask first here. We have the domain

http://bnf.drgreene.com/

forwarding to

http://67.192.249.18/bnf/

But notice when you click on http://bnf.drgreene.com, the address in
the URL changes to the other IP listed. Is there a way to keep the
URL bnf.drgreene.com min the URL browser bar?

We are using Apache 2 on Linux with PHP 5.. Thanks, - Dave
Reply With Quote
  #2 (permalink)  
Old 06-24-2008
Paul Lautman
 
Posts: n/a
Default Re: Can PHP help with masking URLs?

laredotornado@zipmail.com wrote:
> Hi,
>
> Not sure how this is done, but since our application is written in
> PHP, I thought I'd ask first here. We have the domain
>
> http://bnf.drgreene.com/
>
> forwarding to
>
> http://67.192.249.18/bnf/
>
> But notice when you click on http://bnf.drgreene.com, the address in
> the URL changes to the other IP listed. Is there a way to keep the
> URL bnf.drgreene.com min the URL browser bar?


That is the sort of thing that phishers would love to do.


Reply With Quote
  #3 (permalink)  
Old 06-24-2008
Michael Fesser
 
Posts: n/a
Default Re: Can PHP help with masking URLs?

..oO(laredotornado@zipmail.com)

>Not sure how this is done, but since our application is written in
>PHP, I thought I'd ask first here. We have the domain
>
>http://bnf.drgreene.com/
>
>forwarding to
>
>http://67.192.249.18/bnf/
>
>But notice when you click on http://bnf.drgreene.com, the address in
>the URL changes to the other IP listed. Is there a way to keep the
>URL bnf.drgreene.com min the URL browser bar?


Sure. Host the entire website on the same server where the domain points
to. If the site is split across several servers or the domain points to
a different machine, then of course the URLs would change as seen above.
One document, one URL.

This has nothing to do with PHP, but with server and DNS configuration.

Micha
Reply With Quote
  #4 (permalink)  
Old 06-25-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Can PHP help with masking URLs?

laredotornado@zipmail.com wrote:
> Hi,
>
> Not sure how this is done, but since our application is written in
> PHP, I thought I'd ask first here. We have the domain
>
> http://bnf.drgreene.com/
>
> forwarding to
>
> http://67.192.249.18/bnf/
>
> But notice when you click on http://bnf.drgreene.com, the address in
> the URL changes to the other IP listed. Is there a way to keep the
> URL bnf.drgreene.com min the URL browser bar?
>
> We are using Apache 2 on Linux with PHP 5.. Thanks, - Dave
>


No. But as others have noted, this is not a PHP problem - no PHP code
is being executed to do the redirect.

Try alt.apache.configuration - but they'll tell you it can't be done.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #5 (permalink)  
Old 06-25-2008
Thirtysixway@gmail.com
 
Posts: n/a
Default Re: Can PHP help with masking URLs?

On Jun 24, 5:06*pm, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> wrote:
> Hi,
>
> Not sure how this is done, but since our application is written in
> PHP, I thought I'd ask first here. *We have the domain
>
> http://bnf.drgreene.com/
>
> forwarding to
>
> http://67.192.249.18/bnf/
>
> But notice when you click onhttp://bnf.drgreene.com, the address in
> the URL changes to the other IP listed. *Is there a way to keep the
> URL bnf.drgreene.com min the URL browser bar?
>
> We are using Apache 2 on Linux with PHP 5.. *Thanks, - Dave


I used an online tool to look at the headers, I'm getting a 302
redirect to the IP from the domain. This looks like a configuration
issue that handles forwarding. Most likely apache, but if you setup
your forwarding via your register [like godaddy for example] then you
just need to change it on there.
Reply With Quote
  #6 (permalink)  
Old 06-25-2008
Gordon
 
Posts: n/a
Default Re: Can PHP help with masking URLs?

On Jun 24, 10:06 pm, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> wrote:
> Hi,
>
> Not sure how this is done, but since our application is written in
> PHP, I thought I'd ask first here. We have the domain
>
> http://bnf.drgreene.com/
>
> forwarding to
>
> http://67.192.249.18/bnf/
>
> But notice when you click onhttp://bnf.drgreene.com, the address in
> the URL changes to the other IP listed. Is there a way to keep the
> URL bnf.drgreene.com min the URL browser bar?
>
> We are using Apache 2 on Linux with PHP 5.. Thanks, - Dave


You need to set up an Apache ProxyPass (if that's the server you're
using of course). Try the Apache groups for more details.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0