Re: [PHP] Hide the real URL

2007-07-28 Thread Richard Lynch
On Fri, July 27, 2007 10:17 pm, Eric Butera wrote: > We have our own dedicated server that we host client sites on. If I > were to back out into the root then I would be at the level of all the > other sites. It just doesn't make sense in my case. It's pretty trivial to add one more layer of dir

Re: [PHP] Hide the real URL

2007-07-27 Thread Tom Ray [Lists]
Eric Butera wrote: On 7/28/07, brian <[EMAIL PROTECTED]> wrote: Eric Butera wrote: On 7/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, July 27, 2007 8:20 am, Eric Butera wrote: Not everyone has the option to do that. Plus I think it is unintuitive to have t

Re: [PHP] Hide the real URL

2007-07-27 Thread Eric Butera
On 7/28/07, brian <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > On 7/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > >>On Fri, July 27, 2007 8:20 am, Eric Butera wrote: > >> > >>>Not everyone has the option to do that. Plus I think it is > >>>unintuitive to have things outside of your

Re: [PHP] Hide the real URL

2007-07-27 Thread brian
Eric Butera wrote: On 7/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, July 27, 2007 8:20 am, Eric Butera wrote: Not everyone has the option to do that. Plus I think it is unintuitive to have things outside of your actual "web site." You can disallow traffic with Apache fairly easi

Re: [PHP] Hide the real URL

2007-07-27 Thread Eric Butera
On 7/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, July 27, 2007 8:20 am, Eric Butera wrote: > > Not everyone has the option to do that. Plus I think it is > > unintuitive to have things outside of your actual "web site." You can > > disallow traffic with Apache fairly easily if you'r

Re: [PHP] Hide the real URL

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 8:20 am, Eric Butera wrote: > Not everyone has the option to do that. Plus I think it is > unintuitive to have things outside of your actual "web site." You can > disallow traffic with Apache fairly easily if you're paranoid of such > things. I used to do this. Until one d

Re: [PHP] Hide the real URL

2007-07-27 Thread Eric Butera
On 7/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, July 26, 2007 8:41 am, Eric Butera wrote: > > filenames. Are you trying to protect them from unauthorized viewing? > > If you are trying to protect from unauthorized viewing, they probably > shouldn't be in the webtree at all, as it's

RE: [PHP] Hide the real URL

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 10:40 pm, Chris Aitken wrote: >> > There's a couple of "protect your image" schemes that will >> frustrate >> > the typical user, but they can be easily broken, like the one I >> > created here: >> > >> > http://www.webbytedd.com/b/protect_image/ >> > >> >> Firefox -> Tools ->

Re: [PHP] Hide the real URL

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 8:41 am, Eric Butera wrote: > filenames. Are you trying to protect them from unauthorized viewing? If you are trying to protect from unauthorized viewing, they probably shouldn't be in the webtree at all, as it's not exactly rocket science to guess that your images are in an

Re: [PHP] Hide the real URL

2007-07-26 Thread Richard Lynch
On Thu, July 26, 2007 8:18 am, elk dolk wrote: > Hi all, > > I want to hide the real URL to my images by masking it with PHP > the code looks like this: > > $query = "SELECT * FROM table"; > $result=mysql_query($query); > > while ($row = mysql_fetch_array($result)) > { > echo ""; > } > > if you loo

RE: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 08:40 PM, Chris Aitken wrote: > > There's a couple of "protect your image" schemes that will frustrate > > the typical user, but they can be easily broken, like the one I > > created here: > > > > http://www.webbytedd.com/b/protect_image/ > > > > Firefox -> Tools -> Page Info -> Medi

RE: [PHP] Hide the real URL

2007-07-26 Thread Chris Aitken
> > There's a couple of "protect your image" schemes that will frustrate > > the typical user, but they can be easily broken, like the one I > > created here: > > > > http://www.webbytedd.com/b/protect_image/ > > > > Firefox -> Tools -> Page Info -> Media -> Scroll Till Find -> Bingo! > Say Fire

Re: [PHP] Hide the real URL

2007-07-26 Thread Robert Cummings
On Thu, 2007-07-26 at 22:08 -0400, tedd wrote: > > There's a couple of "protect your image" schemes that will frustrate > the typical user, but they can be easily broken, like the one I > created here: > > http://www.webbytedd.com/b/protect_image/ > > Others might have done it, but I haven't se

Re: [PHP] Hide the real URL

2007-07-26 Thread tedd
At 6:18 AM -0700 7/26/07, elk dolk wrote: Hi all, I want to hide the real URL to my images by masking it with PHP the code looks like this: if you look at the source in browser you will see: how can I show it like this: elk: Yes, but for what purpose do you want to hide the image url, f

Re: [PHP] Hide the real URL

2007-07-26 Thread Nathan Nobbe
eric, thanks for taking time to explain this. -nathan On 7/26/07, Eric Butera <[EMAIL PROTECTED]> wrote: On 7/26/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > eric, > > ive seen this technique mentioned once or twice on the list now; do you know > of an article online > you could share that e

Re: [PHP] Hide the real URL

2007-07-26 Thread Eric Butera
On 7/26/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: eric, ive seen this technique mentioned once or twice on the list now; do you know of an article online you could share that explains it? -nathan On 7/26/07, Eric Butera <[EMAIL PROTECTED]> wrote: > > On 7/26/07, elk dolk <[EMAIL PROTECTED]>

Re: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 08:08 AM, M. Sokolewicz wrote: // output to browser, suppressing error message why are you suppressing error messages?? @readfile($Filename); http://php.net/readfile "Reads a file and writes it to the output buffer

Re: [PHP] Hide the real URL

2007-07-26 Thread M. Sokolewicz
Paul Novitski wrote: At 7/26/2007 06:18 AM, elk dolk wrote: I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = "SELECT * FROM table"; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo ""; } if you look at the source i

Re: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 06:18 AM, elk dolk wrote: I want to hide the real URL to my images It should be pointed out that you can't really hide the real URL of your images. If an image appears in a browser, the browser will accurately report its location to the user, and the user can save it to their

Re: [PHP] Hide the real URL

2007-07-26 Thread Nathan Nobbe
eric, ive seen this technique mentioned once or twice on the list now; do you know of an article online you could share that explains it? -nathan On 7/26/07, Eric Butera <[EMAIL PROTECTED]> wrote: On 7/26/07, elk dolk <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to hide the real URL to my

Re: [PHP] Hide the real URL

2007-07-26 Thread Paul Novitski
At 7/26/2007 06:18 AM, elk dolk wrote: I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = "SELECT * FROM table"; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo ""; } if you look at the source in browser you will see

Re: [PHP] Hide the real URL

2007-07-26 Thread Eric Butera
On 7/26/07, elk dolk <[EMAIL PROTECTED]> wrote: Hi all, I want to hide the real URL to my images by masking it with PHP the code looks like this: $query = "SELECT * FROM table"; $result=mysql_query($query); while ($row = mysql_fetch_array($result)) { echo ""; } if you look at the source in br

Re: [PHP] Hide the real URL

2007-07-26 Thread Richard Heyes
how can I show it like this: 1. Make your links point to 2. In show.php, try the following: http://www.mnot.net/cache_docs/ or use Fiddler to // find out what headers are being sent to your browser: // http://www.fiddlertool.com header('Cont