Protecting Directories And Redirecting

Is there any way to setup a multiple password page where if user1 logs in it will take him to dir1 and if user2 logs in it will take him to dir2 and so on. Basically, we need a page that checks to see if the user name and password exists and then redirects accordingly.

View Replies


ADVERTISEMENT

Sub-directories

I know how to copy files from one location to another but how would I go
about copying a file from one directory into serveral - or actually all
subdirectories in a single action? Some kind of loop

Basically I want to be able to enter a filename into a text field and click
submit which would then copy the named file (which resides in the root
directory) into every subdirectory under the root (1 level only). Would be
helpful to be able to specify mutliple files to be copied at once.

View Replies View Related

Seeing Directories Using ObjFileScripting

I found this script on the web that I've adapated a little to see the files I put into a directory. However it doesn't see any sub directories. Does anyone have any idea how i can point to a directory and list everything, including the directories? Code:

View Replies View Related

Directories And Security

It's funny that this has not been invented yet, or has it?:
You store your DB outside your default website.
It is accessed only through your ASP code and a ODBC-connection.
This way your DB is not obtainable for the web user.
Why doesn't Any One create a connection corresponding to ODBC, lets call it
FileConnect that in the same way allows us, in a web site, to have directories
and files that are really hidden?

View Replies View Related

Virtual Directories

In php you can have a script like: http://localhost/page/parameter1/parameter2
where page is acually a php script and the script gets the parameters in $PATH_INFO

I need something similar in asp. If possible without modifying any settings on IIS.
Here is a tutorial on how to do it in php. http://www.zend.com/zend/spotlight/searchengine.php

View Replies View Related

Uploading To Different Directories

I am trying to set SA-Fileup to filter the files that are uploaded based on the name of file selected in the form. I am able to get it to work on Filetype, but I need it to do it on Filename is not Filetype. where I can find something on this?

View Replies View Related

Looping Through Directories

i have a subdomain on my works server that i use to store different stuff on, like different projects that i'm working on. They are all set up in their own folders, for example, sub.blah.com/project1, sub.blah.com/project2 etc etc. (all the folders have different names).

What i want to do is to create an index page on sub.blah.com that will list out all of the folders. I dont have any access to the server workings so this all has to be done with a script.

View Replies View Related

Global.asa And Sub-directories

My global.asa maintains some stats for me. However when I put part of my site in a sub-directory it appears to run the global.asa file from the sub-directory when I am accessing content in that sub-directory. This makes all the paths specified in global.asa wrong.

I can understand that it runs, since it is application driven and all sub-directories will be part of the same app, but I can't understand it running in a different directory to where is resides.

View Replies View Related

Creating Directories

Is it possible to create a directory in ASP? If possible, how?

View Replies View Related

Protecting Non-asp Files

how to protect pdf files from being accessed after the session has ended.(by typing the url).

View Replies View Related

Protecting ASP Code

I did write some asp code, that I sell to companies, to control several
dbases. Because I sell the code, it's not that they own the code and can
sell it further or change the code, or add some extra code to it. It's like
I'm selling a program like Excel and that they can use the program, not
change it. I'm still the rightful and intellectual owner.

Also, if you give the raw asp-code, then there is a possibility that they
change to code a bit for there internal usage only. But if I sell an update,
then they have to search and copy/past there old code in the new page, not
knowing, that everything will work eventually.

It would be a lot nicer and easer if I can deliver some protected code that
they can't change! This will make my live a lot easer regarding updates. And
I will sleep better because they can't see the raw asp code,
copy/past/change and sell it or worse, going to competitors. Code:

View Replies View Related

Protecting ASP Code ?

Is their anyway I can protect my asp code from being copied. I have created a number of include files that are quite useful and save a lot of time.

I am hoping that if another developer is enlisted to work on a project i have worked on previously, I can protect all my hard work from being plagerised.

View Replies View Related

Protecting Your Code

is there anyway of protecting your ASP code?

I have writen a few scripts that I'm allowing some poeple I know to use but I don't what them to be able to view the code, is there anyway of stoping them like compiling the code into a DLL or something?

View Replies View Related

Protecting Files

I've built an upload system but i now need to protect the files from being downloaded
without being logged into the site.What's the best scenario to implement.I'm using an access database for the site.

Here's what i have done so far.Once a file link (just the id not the file name) is clicked it will check that there's a session variable present then it will present the user with the actual file but i'm now guessing is this the best way to go.

View Replies View Related

Protecting Contents

what is the best way to protect a folder of files on an asp site so that only people who have logged into the site are allowed to view the files?

would it be best to put them inside a cgi-bin and then have a page with links to the files, or is there a better option?

View Replies View Related

Protecting Images

I am building a site that will have a number of images on it, at the moment I have the images in a Dir on the site and the paths stored in database.I want the make it as hard as I can for people to download the Images that are stored on the as some will probably be copyrighted, etc. I know watermarking the images is probably the only real way of protecting them, but I was hoping not to have to do this.

I plan to put a transparent gif in front of the images so right clicking don't work, is there anything I can do to protect the paths that will appear in the source downloaded to the browser?

View Replies View Related

Protecting Password

I am using ms access database and asp 3.0 as my front end. In my database there is a table called account and a field called password. How do I protect the password stored in the database.

View Replies View Related

Password Protecting

I've created a database for a group of about 5 people that I password protected. They all use the same user name and pass to access the website. I've used a session variable that is set to "valid" if the user and pass are correct. When the click the sign out link on any page, I use the Code:

View Replies View Related

Protecting Code

Imagine you could encrypt your asp pages and then using a dll run the pages as normal do you think there would be a market for it. Obviously the dll would need to be registered on the server, but once registered you never need to register it again, if the asp page changes then just re-encrypt it.

One advantage I could see for it is db connections or when writing scripts for other companies but want to protect some of the routines you might have written. But what do you think.

View Replies View Related

Protecting Images

I am after a solution to people both linking to my images and putting the paths into their browsers manually (when they know the format, after viewing the site normally). The reason is that the site has banners, and the only way I can keep it up (afford the hosting) is by successfully serving a banner along with the image requested.

I know xoom and those sort of hosting places have this technology. so it exists, and I'm sure many of you know what I'm talking about. My site will be wholly written in ASP, so hopefully there is an ASP solution. It will also use a mysql db (if that info is of any use).

This is extremely important. If I can't find a workable solution, the new site will never be launched.

View Replies View Related

Protecting Applications

I've finally written an asp app that is worthy of resale and would like to hear from you who have done the same. What is the best way to protect my application? I would like to stay away from anything that has to be registered on the server as most of my target audience will not have physical access to their web servers. They will just upload the code to their server and set directory permissions for the database.

I 've purchased asp scripts myself in the past and had to provide a domain name where it would be running. It would not run on any other domain but the one I provided. Is this a practical approach or is there a better way? How is it done? I've also seen posts about putting some of the vb code into an activeX dll. Is this a solid solution? Again, How is this done?

View Replies View Related

Protecting A Folder

I have a site with restrict access where people can download documents in pdf format. All documents reside in a folder. My problem is that if the person puts the full path to the document in the browser (ex. www.mysite.com/documents/documentx), he can download the document even not being logged in. What is the best way to create a protected folder that I can access via ASP (with a password) to get the document to the user ?

Is there any way to do it without saving files to a database or having to use windows basic authentication ?

View Replies View Related

Images In Include Used In Different Directories

I have an include file which contains some images. If I use this include in a sub directory, the path is obveously wrong. How can I sort this problem - is it best to just use absolute paths rather than relative?

View Replies View Related

Includes, Images & Sub Directories

I'm creating a site which will have the home page at the root level, but all of the sub pages in sub directories:

root/
-homepage.asp
-subdirectory/
subpage.asp
-images/
logo.gif
-includes/
header.asp
Each page of the site will have the include <!--#include virtual="/includes/header.asp" -->

header.asp is a table with our company logo, logo.gif. The problem I'm having is that subpage.asp does not display logo.gif because the path in the include is only correct at the root level.

I don't want to create multiple includes. Is there another way to make this work that I'm missing? Thanks!

View Replies View Related

Reading Files And Directories

I have several files and directories and I want to read the contents, seperate them into fields and INSERT them into a database.

The structure is as follows:

D:DISCSSC8849SC8849-01 Artistname - title.zip
D:DISCSSC8849SC8849-02 Artistname - title.zip
D:DISCSLG114LG114-01 Artistname - title.zip

I want to read every file in D:DISCS, seperate the filenames into: Disk Number, Track Number, Artist and Title - drop the .zip and the hyphens entirely and insert the data as a record in a database.

View Replies View Related

Including Menu In Certain Directories

I'm including a template on all pages in a site. In the template I have a menu. What I'd like is to have a different menu displayed if I'm in a different directory. Something along the lines of:

If path is /mainsite Then
Regular Menu
If path is /admin Then
Admin Menu

Just not sure about how to go about getting there. My first thought was to use the PATH_INFO server variable, but that returns the page name too. Any suggestions?

View Replies View Related

Cookies And Virtual Directories

I'm having a problem with cookies in a virtual directory,

A cookie is created by an ASP application in the root folder i.e.
http://xxx.yyy.com

I'm unable to read this cookie in a virtual directory i.e.

https://xxx.yyy.com/mydirectory in a Visual Studio 2005 application.

If I create the cookie in my virtual directory the application in the root directory reads the cookie without any issues.

View Replies View Related

List Directories But Not Subdirectories

I have managed to cobble this together And now I have got stuck with modifying it.

What it does is provide an option box that allows you to choose any of the folders in a directory. The files in that directory are then listed below the option box. (the file structure dictates the order/grouping of the files)

It change the path-to-directory with a manual option. Code:

View Replies View Related

Session In ASP For Two Virtual Directories

Can a session be good for two different virtual directories under the
same site? They are for internal use only.

Would the session be carried from the virtual directories?

Site one is : http://fs1/review1/

Site two is: http://fs1/review2/

View Replies View Related

List Directories Editing

how to do Editing of default IIS directory listing template. How would you edit the template that IIS uses to list directories?

View Replies View Related

Password Protecting Folders

I am developing a small e-commerce site that allows users to create an account, pay, and then download audio files.I have only been doing ASP for about 6 months and this is a new problem for me: I need to not only password protect the pages (using Sessions and checking usernames and passwords against an Access database), but I also need to password protect the audio files themselves, so that users can't just type in the absolute URL to the audio files and get them for free.

I'm guessing password protecting the entire folder that contains the pages and audio files would be the best way to go, but I have no idea how to do this, and haven't been able to find any info on it.the site is part of a larger already existing site which is on a Shared Windows hosting account, so I have no root-level access to install any new software or technologies.

View Replies View Related

Password Protecting Files

How can I password protect files so that no one can anonymously download it? I have windows 2003 server with IIS 6.0. Please explain the steps in detail.

View Replies View Related

Protecting Directory Contents

Lets say I have a folder 'members/3/'. in this folder are images. I have a login page that connects to a database to retrieve user info. After login the user is directed to a page that lists the files in the above directory.

Now lets say some other user goes to the directory and types in members/3/image1.jpg he/she will now see the image. How can I stop this without using ntfs permissions.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved