Reply to Re: How to make URL cloaking

Your name:

Reply:


Posted by Jerry Stuckle on 01/24/08 13:23

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=dsfd+dfs
> 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=he3 not 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).

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация