Forum Moderators: coopster

Message Too Old, No Replies

disguising variables in URL

         

farberama

5:18 pm on Dec 22, 2003 (gmt 0)

10+ Year Member



Is there a way to automatically disguise the variables appended to the end of a URL without using a form or sessions?

Basically, I would like [somesite.com...] to show up in a way that foo=1 comes out unidentifiable. Would I have to encrypt it, append it to the url, and them decrypt on the next page? Or, is there some function that would do this for me.

farberama

5:21 pm on Dec 22, 2003 (gmt 0)

10+ Year Member



the sample url should have a? instead of an & before foo=1.

http:/www.somesite.com/somepage.pgp?foo=1

tstaheli

7:47 pm on Dec 22, 2003 (gmt 0)

10+ Year Member



Welcome to Webmasterworld, there are a couple of ways to disguise variables, one way is mod_rewrite. It's the best way to do it, I'd refer to the Apache Server form to learn more about it if you are running Apache. It changes [somesite.com...] to [somesite.com...] or whatever extension you want or no extension at all.

daisho

9:00 pm on Dec 22, 2003 (gmt 0)

10+ Year Member



What is your purpose for this? Do you want to hide the fact that a dynamic script is being called or do you want to hide what the data acctually is? Both are quite different.

daisho.

httpwebwitch

9:43 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



2 months ago I was trying to do the same thing (it's in an older thread here). a 2-way obfuscator (not to be confused with real, reliable encryption)

this did the trick:

ht*p://www.hansanderson.com/php/crypto/

farberama

12:13 am on Jan 9, 2004 (gmt 0)

10+ Year Member



Thanks httpwebwitch, I'll check into that. In fact, I appreciate everyone's input. However, the project I was researching this for has been put on hold. Thanks anyway.