|
Posted by ZeldorBlat on 01/24/08 13:51
On Jan 24, 8:42 am, shror <shahi...@gmail.com> wrote:
> On Jan 24, 3:23 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
>
>
> > shror wrote:
> > > Hi Everybody,
>
> > > I have a small question about URL cloaking, am working on an idea of
> > > creating URL cloaking system, this is that my users can get cloaked
> > > URLs for their long URLs in other words, if you have URL like this:
> > >http://www.yourdomain.com/folder1/folder2/page.extension?gshagaoj=dsf...
> > > this link after cloaking may look like this:http://www.mydomain.com/page.htm
> > > for example
>
> > > I read on somewhere that this could be used using:
> > > <?php
> > > header("Location:http://www.yourdomain.com/page.extension?sdfs
> > > +sdf=he3");
> > > exit();
> > > ?>
>
> > > but this URL code on one of my pages takes me to the location
> > > specified in the code, and in the address bar the url found is
> > >http://www.yourdomain.com/page.extension?sdfs+sdf=he3notmy own URL
> > > hiding the other location (your URL)
>
> > Which is exactly how it should be. The Location header instructs the
> > browser to request the page from the new URL. And the browser will
> > display the new URL.
>
> > > Please help me how this works if anyone know
>
> > > Thanks in advance
>
> > > shror
>
> > The obvious question would be - why would you ever try to fool your
> > users like this?
>
> > You would have to serve the page from your site (i.e. with cURL).
>
> > --
> > ==================
> > Remove the "x" from my email address
> > Jerry Stuckle
> > JDS Computer Training Corp.
> > jstuck...@attglobal.net
> > ==================
>
> Hi Jerry,
>
> Thanks for your quick reply,
> Am not trying to fool my users but what I want to do is to create
> something like the short URL maker so that you can get small URL from
> my website to use it with long ones at your own website, or to hide
> the real URL if its long with a small one, so my whole idea is a free
> service nothing more.
So it's really the same thing as TinyURL?
Navigation:
[Reply to this message]
|