Search Engine Optimization > Webmaster World > Masking URL?
Masking URL?
Posted by on March 17th, 2006

I want to dump a load of files in a folder for users to download once
they've paid. Now I don't want them to work out where the file came from in
terms of URL structure as this may enable them to download the rest for
free.

So - is there an easy mechanism - preferably using ASP - on my webserver
that I can use to effectively mask the URL of downloadable files?

Thanks for any help.


Posted by David Dorward on March 17th, 2006

nospam@nospam.com wrote:
Anything you tell the browser you also tell the user. If you don't tell
the browser where the file is, then it can't download it.

Slap an authentication layer in place and return an unauthorised
response if the user isn't allowed to access the file. (No idea how
you'd do that in ASP but its very easy in mod_perl).


Posted by dingbat@codesmiths.com on March 17th, 2006


nospam@nospam.com wrote:

Then fix that first.


Posted by Brian Cryer on March 17th, 2006

<nospam@nospam.com> wrote in message
news:dve18c$dob$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
I don't know ASP but it should be possible to avoid having a URL at all, by
streaming the data for the file down to the users using some ASP code.

Since you are using ASP, take a look at http://psacake.com/web/gj.asp (just
the first I found in Google).
--
Brian Cryer
www.cryer.co.uk/brian



Posted by on March 17th, 2006


Thanks Brian. Unfortunately I've found that out already and the annoying
thing is that the files are PDFs which really don't behave properly when the
application/pdf line is substituted...

Its really getting on my nerves now. Grrr.



Posted by Brian Cryer on March 17th, 2006

<nospam@nospam.com> wrote in message
news:dvenbt$7ph$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
Logically it should be possible, but having googled on it all I've turned up
is that you are not alone in having problems with PDFs.

If you can't get it to work and fall back on a traditional URL approach,
then could you copy the PDF to a temporary file that you create for each
specific user, link to that and delete the file after say an hour? Do you
see what I'm getting at?
--
Brian Cryer
www.cryer.co.uk/brian



Posted by William Tasso on March 17th, 2006

Fleeing from the madness of the jungle
Brian Cryer <brianc@127.0.0.1.activesol.co.uk> stumbled into
news:alt.www.webmaster
and said:

Haven't been following closely - has anyone suggested a little research
into response.binarywrite

--
William Tasso

whither a trophy?

Posted by John Bokma on March 17th, 2006

<nospam@nospam.com> wrote:

No.

You can make temporary URLs however, like only valid for 3 hours after
payment.

--
John isa Perl programmer: http://johnbokma.com/perl/perlprogrammer.html

Fox G Bar: http://johnbokma.com/firefox/google-...stomizing.html

Posted by hug on March 17th, 2006

John Bokma <john@castleamber.com> wrote:

Or you could email the file to them when payment is received.

--
http://www.ren-prod-inc.com/hug_soft...action=contact

Posted by John Bokma on March 18th, 2006

hug <contact_info@sig_line.clickit> wrote:

[..]

Spamfilters, and some inboxes can't handle over a few MB.

--
John Experienced (web) developer: http://castleamber.com/

Perl RSS Builder: http://johnbokma.com/perl/rss-web-feed-builder.html

Funbolt.com - Entertainment portal, wallpapers, sexy celebs