473,383 Members | 1,846 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,383 software developers and data experts.

Restricting Files

Hi all,
i do have .wmv extension movie file in my folder, This is
called in an aspx file, and it plays well,

The problem is when i give a direct url like
http://localhost/App/Movie.wmv, it actually plays the movie file in the
Windows Media Player. This should not happen.

So i created a Handler in the Web.config file to restrict all the files
of wmv extension, It worked fine.

so when i give this file http://localhost/App/Movie.wmv , it says this
type is not served.

But in my aspx page also it not plays--How do i do it

I want this to be played in the aspx page , bot not directly giving the
path.

Any insights
Thanks in Advance

thomson

Nov 19 '05 #1
4 1063
Did you call put something like <object >Movie.wmv </object> or <embed>
within the HTML code, so the clientside was doing request to the server
or did you using "binary streaming"? if you did the first method, and
it didn't play then asp.net is working probably ?_? because that is a
GET command issue from client side and it will go through your handler.

Nov 19 '05 #2
Thomson
Try seeing through : http://aspnet.4guysfromrolla.com/articles/020404-1.aspx
Hope that helps
Patrick
"thomson" <sa**********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi all,
i do have .wmv extension movie file in my folder, This is
called in an aspx file, and it plays well,

The problem is when i give a direct url like
http://localhost/App/Movie.wmv, it actually plays the movie file in the
Windows Media Player. This should not happen.

So i created a Handler in the Web.config file to restrict all the files
of wmv extension, It worked fine.

so when i give this file http://localhost/App/Movie.wmv , it says this
type is not served.

But in my aspx page also it not plays--How do i do it

I want this to be played in the aspx page , bot not directly giving the
path.

Any insights
Thanks in Advance

thomson

Nov 19 '05 #3
Iam using the first method, is there any way out,

Nov 19 '05 #4
Iam Using the first Method
<object >Movie.wmv </object> or <embed>
within the HTML code

and i have used resricted the .wmv extension in the handler section ,

Any insights?

Nov 19 '05 #5

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

Similar topics

2
by: Pekka Henttonen | last post by:
Is there a way to limit the size of a database backup file (instead of one huge file to have several smaller ones)? The command does not seem to have any suitable options, as far as I can see.
2
by: amit | last post by:
hi, I have a web application using forms based authentication. I want to restrcit even the non asp.net files from forms authentication i.e I do not want that my clients should be able to access...
0
by: WebMatrix | last post by:
Hello, What's the best way to keep email templates as html files on the server, so ASP.NET application can get file access to it, while restricting web users from accessing it through their...
10
by: KBTibbs | last post by:
Hi. I'm restricting access to my webpage with forms authentication, but I have some .htm files that I want to restrict as well (by default, ASP.NET does not restrict this, so anyone with access to...
8
by: sneddo | last post by:
Ok I am trying to do the above, I have got a script that will restrict the length but it requires the user to enter the field and hit a key, before it will work. This would normaly be find, but...
1
by: ettarameshreddy | last post by:
Hi, I got a problem like i write a input file element like this <input type="file" name="testfile" > When i execute this i get a text box with browse. when i click browse i am abl e...
2
by: sant.tarun | last post by:
Hi, I am facing some some problem in restricting the access of a variable.... My question is described below..... Let I have two different C source files 'a.c' and 'b.c'. In the file 'a.c'...
2
by: runway27 | last post by:
i am using apache server and presently when i try accessing any folders of my website i am able to browse the files ex = www.website.com/images which is a serious security risk as i am building a...
7
by: shashi shekhar singh | last post by:
Respected Sir, I am really tired in solving of this issue that have been arises when i would like to restrict files to access only on my Test page , here i am retriving my files in iframe in Test...
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.