Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to make URL cloaking

 
   Database Forums (Home) -> PHP RSS
Next:  Email Validation (Block Unwanted Addresses)  
Author Message
shror

External


Since: Apr 25, 2007
Posts: 4



(Msg. 1) Posted: Thu Jan 24, 2008 5:16 am
Post subject: How to make URL cloaking
Archived from groups: comp>lang>php (more info?)

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)


Please help me how this works if anyone know

Thanks in advance

shror

 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
shror

External


Since: Apr 25, 2007
Posts: 4



(Msg. 2) Posted: Thu Jan 24, 2008 5:42 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 24, 3:23 pm, Jerry Stuckle 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).
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck... DeleteThis @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.

 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
ZeldorBlat

External


Since: Apr 17, 2007
Posts: 44



(Msg. 3) Posted: Thu Jan 24, 2008 5:51 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 24, 8:42 am, shror wrote:
> On Jan 24, 3:23 pm, Jerry Stuckle 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....DeleteThis@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?
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 1367



(Msg. 4) Posted: Thu Jan 24, 2008 8:23 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.RemoveThis@attglobal.net
==================
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 1367



(Msg. 5) Posted: Thu Jan 24, 2008 10:18 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

shror wrote:
> On Jan 24, 3:23 pm, Jerry Stuckle 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 DeleteThis @attglobal.net
==================
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
John Dunlop

External


Since: Nov 18, 2007
Posts: 6



(Msg. 6) Posted: Fri Jan 25, 2008 12:21 pm
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jerry Stuckle:

> The TinyURL is a good idea.

Not publishing excessively long URLs is better still.

--
Jock
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
Rik Wasmus

External


Since: Sep 02, 2007
Posts: 210



(Msg. 7) Posted: Sat Jan 26, 2008 12:04 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 25 Jan 2008 21:21:06 +0100, John Dunlop wrote:

> Jerry Stuckle:
>
>> The TinyURL is a good idea.
>
> Not publishing excessively long URLs is better still.

However, pusblishing descriptive URLs is better then obscure ones:
http://www.example.com/mathematics/operators/laplace-transform
vs.
http://www.example.com/?topicid=123abcfoo
--
Rik Wasmus
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
John Dunlop

External


Since: Nov 18, 2007
Posts: 6



(Msg. 8) Posted: Sat Jan 26, 2008 12:05 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Rik Wasmus:

> However, pusblishing descriptive URLs is better then obscure
> ones:http://www.example.com/mathematics/operators/laplace-transform
> vs.http://www.example.com/?topicid=123abcfoo

Yes, there is indeed a balance to be struck between length and
descriptiveness. I suppose my remark was an "all else being equal"
one.

I say: designing URLs is a trade-off between principles such as
length, meaningfulnes, rememberability, typability and hackability;
persistence stands alone in that it should not be compromised.

By the way,

http://example.com/maths/operators/laplace-transform
http://example.com/math/ops/laplace-transform

--
Jock
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
RomZ

External


Since: Jan 26, 2008
Posts: 2



(Msg. 9) Posted: Sat Jan 26, 2008 3:54 pm
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dear topic starter,

If you are talking about redirect url - you'd better think about
<frames> Wink

http://cgartist.tk/ points to ...narod.ru
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
shror

External


Since: Apr 25, 2007
Posts: 4



(Msg. 10) Posted: Sun Jan 27, 2008 1:29 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 27, 1:54 am, RomZ wrote:
> Dear topic starter,
>
> If you are talking about redirect url - you'd better think about
> <frames> Wink
>
> http://cgartist.tk/points to ...narod.ru

Thank you every body for your responses,

what i want to do is to create a short url to be used in order to call
long ones and hides the long url in the address bar, this is in order
to make some security on my system and to give the users an easy to
remember urls.

anyway am searching all your helpful topics and if theres any more you
want to share, will be really appreciated.

Thanks for all your answers

shror
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 1367



(Msg. 11) Posted: Sun Jan 27, 2008 9:10 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

shror wrote:
> On Jan 27, 1:54 am, RomZ wrote:
>> Dear topic starter,
>>
>> If you are talking about redirect url - you'd better think about
>> <frames> Wink
>>
>> http://cgartist.tk/points to ...narod.ru
>
> Thank you every body for your responses,
>
> what i want to do is to create a short url to be used in order to call
> long ones and hides the long url in the address bar, this is in order
> to make some security on my system and to give the users an easy to
> remember urls.
>
> anyway am searching all your helpful topics and if theres any more you
> want to share, will be really appreciated.
>
> Thanks for all your answers
>
> shror
>

IOW you want to make people think some other site's content is your own.

It won't work. As soon as they see a link on that page they'll find out
where it's coming from. The same with images or anything else similar.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex.DeleteThis@attglobal.net
==================
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
j1mb0jay

External


Since: Jan 11, 2008
Posts: 3



(Msg. 12) Posted: Sun Jan 27, 2008 5:05 pm
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

RomZ wrote:
> Dear topic starter,
>
> If you are talking about redirect url - you'd better think about
> <frames> Wink
>
> http://cgartist.tk/ points to ...narod.ru


Or IFrames

j1mb0jay
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
shror

External


Since: Apr 25, 2007
Posts: 4



(Msg. 13) Posted: Sun Jan 27, 2008 10:37 pm
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 27, 4:10 pm, Jerry Stuckle wrote:
> shror wrote:
> > On Jan 27, 1:54 am, RomZ wrote:
> >> Dear topic starter,
>
> >> If you are talking about redirect url - you'd better think about
> >> <frames> Wink
>
> >>http://cgartist.tk/pointsto ...narod.ru
>
> > Thank you every body for your responses,
>
> > what i want to do is to create a short url to be used in order to call
> > long ones and hides the long url in the address bar, this is in order
> > to make some security on my system and to give the users an easy to
> > remember urls.
>
> > anyway am searching all your helpful topics and if theres any more you
> > want to share, will be really appreciated.
>
> > Thanks for all your answers
>
> > shror
>
> IOW you want to make people think some other site's content is your own.
>
> It won't work. As soon as they see a link on that page they'll find out
> where it's coming from. The same with images or anything else similar.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck... DeleteThis @attglobal.net
> ==================

Its not correct that I want to make people think other sites contents
are mine, what I want to do is two things,
1- to shorten my long URLs
2- to hide the hierarchy of my website with a different URLs

Anyway Thanks for all answers once more

shror
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 1367



(Msg. 14) Posted: Mon Jan 28, 2008 7:24 am
Post subject: Re: How to make URL cloaking [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

shror wrote:
> On Jan 27, 4:10 pm, Jerry Stuckle wrote:
>> shror wrote:
>>> On Jan 27, 1:54 am, RomZ wrote:
>>>> Dear topic starter,
>>>> If you are talking about redirect url - you'd better think about
>>>> <frames> Wink
>>>> http://cgartist.tk/pointsto ...narod.ru
>>> Thank you every body for your responses,
>>> what i want to do is to create a short url to be used in order to call
>>> long ones and hides the long url in the address bar, this is in order
>>> to make some security on my system and to give the users an easy to
>>> remember urls.
>>> anyway am searching all your helpful topics and if theres any more you
>>> want to share, will be really appreciated.
>>> Thanks for all your answers
>>> shror
>> IOW you want to make people think some other site's content is your own.
>>
>> It won't work. As soon as they see a link on that page they'll find out
>> where it's coming from. The same with images or anything else similar.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck....RemoveThis@attglobal.net
>> ==================
>
> Its not correct that I want to make people think other sites contents
> are mine, what I want to do is two things,
> 1- to shorten my long URLs
> 2- to hide the hierarchy of my website with a different URLs
>
> Anyway Thanks for all answers once more
>
> shror
>

OK, if you're just doing it for your site, you can use Apache's
mod_rewrite. More info in alt.apache.configuration.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex.RemoveThis@attglobal.net
==================
 >> Stay informed about: How to make URL cloaking 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
error while doing 'make' in php-5.2.1 - I am trying to build php-5.2.1 in RedHat Linux 9. I have installed libxml2-2.6.11,mysql-5.0.33,httpd-2.2.4(apache) successfully.When i do 'make' from the php directory,i get the following errors..Not able to proceed further.(./configure went smooth). I...

I guess there is a way to make a function out of this but .. - As i said... I have several calls to the same "action" which i guess could be resolved as a function: but i'm learning and i have no idea how to do that. I post the code, extremely boring i suppose. It's in italian, but it shouldnt make suc...

Make the code be illegible - Hi, I would like to make a script in which there would be some google ads. The problem is if the PHP code source is available people will be able to delete the google ads part of the script... How can I make the code be illegible without using Ioncube....

Make the code be illegible - Hi, I would like to make a script in which there would be some google ads. The problem is if the PHP code source is available people will be able to delete the google ads part of the script... How can I make the code be illegible without using Ioncube....

trying to make characters safe for my RSS feed - Whenever users write a post in Microsoft Word and then post it to their weblogs using my PHP software, their RSS feed ends up being corrupted with garbage characters which violate the well-formedness of their XML and therefore cause their newsreaders to...
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]