mod rewrite

  • Thread starter Marcel Kraan (kraan.net)
  • Start date
M

Marcel Kraan (kraan.net)

I have a movie download site and what i need is that if users are
linking my files
(like http://www.eengoedidee.nl/videoz/bmx/jib.mpg)
that they come to a page for the download. Like this
http://www.eengoedidee.nl/videoz/download.cgi?fil_direct=direct&fil_filename=jib.mpg

So i don't want direct linking but always via the download.cgi


If i'am using this .htaccess (below) it seems to work but..
I could not save the files anymore the filenames are changed
from jib.mpg to jib.mpg.html
And i could only save HTML
Maby because 'downloading' is for every user a external link???

Does someone have a solution?
please email me also..


RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.eengoedidee.nl.* [NC]
RewriteCond %{HTTP_REFERER} !^http://eengoedidee.nl.* [NC]
RewriteRule ^(.*)$
http://www.eengoedidee.nl/videoz/download.cgi?fil_direct=direct&fil_filename=$1
 
E

Eric J. Roode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a movie download site and what i need is that if users are
linking my files
(like http://www.eengoedidee.nl/videoz/bmx/jib.mpg)
that they come to a page for the download. Like this
http://www.eengoedidee.nl/videoz/download.cgi?fil_direct=direct&fil_fil
ename=jib.mpg

So i don't want direct linking but always via the download.cgi


If i'am using this .htaccess (below) it seems to work but..
I could not save the files anymore the filenames are changed
from jib.mpg to jib.mpg.html
And i could only save HTML
Maby because 'downloading' is for every user a external link???

Does someone have a solution?
please email me also..


RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.eengoedidee.nl.* [NC]
RewriteCond %{HTTP_REFERER} !^http://eengoedidee.nl.* [NC]
RewriteRule ^(.*)$
http://www.eengoedidee.nl/videoz/download.cgi?fil_direct=direct&fil_fil
ename=$1

You're in the wrong place. You need to ask this question in one of the
newsgroups related to web servers. Comp.infosystems.www.something...

- --
Eric
$_ = reverse sort qw p ekca lre Js reh ts
p, $/.r, map $_.$", qw e p h tona e; print

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPy2O8mPeouIeTNHoEQLkDACg4Yrp/1wRwGvOV5lfmGTgb3uGxNQAn3dM
AmOLp3OIrVfEDD9CTg8LNwNd
=yziZ
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top