473,320 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

mod rewrite

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/dow...lename=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

Jul 19 '05 #1
1 2206
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Marcel Kraan (kraan.net)" <ma****@kraan.net> wrote in
news:3f***********************@news.xs4all.nl:
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/dow...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/dow...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-----
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Link | last post by:
Hello!I am new to Python and I would like to rewrite the following code to python use to call by C program:// JPython code ======================================= import...
1
by: darrel | last post by:
We're using URL rewriting (Isapi Rewrite). Is there any way to grab the pre-rewritten URL or can you only grab the rewritten one? I'm assuming you can't (as that's sort of the point of URL...
2
by: VM | last post by:
I'm about to work on a 'buggy' WIndows C GUI application that was entirely made in C. All the user controls were all hard-coded and the code is pretty hard to understand. The application was made...
1
by: baroque Chou | last post by:
Thanks for the help available on msdn, I have succesful done the rewrite job. But there are 2 problems arise: 1.when I try to rewrite the url from say: www.yoursite.com/beverages.aspx to...
14
by: Stan Canepa | last post by:
This post is mostly for discussion. Why rewrite in .NET? Just a general discussion not related to any specific details. I was just looking to see what reasons developers are looking to, to help...
18
chunk1978
by: chunk1978 | last post by:
hi everyone. i just started learning how to dynamically show/hide elements with a checkbox toggle. i would like to know if it's possible to delete/rewrite elements instead of simply show/hide...
1
by: polilop | last post by:
Is there a URL rewrite module that allows to rewrite url by looking at the database. Egxample: http://www.somesite.com/object.aspx?objectCountryId=1&objectId=22 now i look into the database, see...
1
by: mazdotnet | last post by:
Hi all, I've installed the new Microsoft URL Rewrite Module for IIS 7.0 http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6 on both my laptop (Vista Home Premium) and my desktop...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.