|
Posted by Jerry Stuckle on 01/24/08 15:18
shror 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=he3not my 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).
>>
>
> 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.
>
The TinyURL is a good idea. I use it when posting long url's here on
usenet. But it won't cloak the url of the real target page (which I
don't want to do, anyway).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|