PDA

View Full Version : Physical Adress for Downloading Files


HOTSHOT
January 22nd, 2005, 08:11 PM
I am new to web designing. I have a question that can I use physical adress to give the download links to my files. The files r on the webserver. SO i was wondering the way u can specify the physical adress to databases same way can I give out physical address for people to download the files for my server. Is it possible to do that. I wanted to do this so that peopel can't steal links to my files and use up my bandwith.

degsy
January 22nd, 2005, 11:33 PM
Welcome :)

You want to stop people from Stealing/Hotlinking/Leeching your files?

There are several ways to go about it.
What kind of setup do you have?

It could be done with scripting such as PHP.
The data stored in a database would need to be outputted using a script.

Ned Seagoon
January 22nd, 2005, 11:34 PM
Hi Hotshot

Welcome to CTH

You can code the IP address into links as opposed to a domain name, if this is what you are asking, but I'm not sure what you are getting at with your reason for doing this. BF

EDIT: Bit of 'post at the same time' here, I guess we need a few more details for a better answer.

HOTSHOT
January 23rd, 2005, 02:48 AM
Hello and thanks for a warm welcome. I am talking about specifiying a address like c:/inetpub/file.zip something like that for download links on my website.

degsy
January 23rd, 2005, 03:10 AM
You cannot link directly to your host, as your host would direct it to the webserver home

If you want to link files to anyone then you can use the direct link such as
http://domain.com/file.zip
or
you could setup a FTP server
ftp://domain.com/file.zip

If you are wanting to have people connect to your PC then there are factors to consider.

Does your ISP Allow or Support it?
Do you have a Dynamic or Static IP Address?

Could you explain more of what you want to achieve?

HOTSHOT
January 23rd, 2005, 03:17 AM
Once again thanks for a fast reply. My host also gives me a physical address to my website root. Like this c:\sites\Single4\aabbasi\db . You see when I need to connect to my access database i have to use physical address. I am saying the same way can I put some of my other files for download in db folder. And then specify the physical address for file download on my page. U see my my file exists on my webserver

degsy
January 23rd, 2005, 03:22 AM
To you it is C:\... or http://localhost or http://127.0.0.1 or if you are on a network maybe http://192.168.1.100 etc.


To the outside world, they would need to know the address to get to your PC.
This would be the IP Address assigned to you via your ISP.

HOTSHOT
January 23rd, 2005, 03:26 AM
I think I am not explaining my self the right way here. I dont' have any files on pc all the files are on the webserver. You see when I create a asp page and I need to create a database connection I specify my physical adress there.
Like I did this when I was configuring my webwiz forum I specified the address like this.
'Physical path to database

strDbPathAndName = "" '"C:\Inetpub\wwwroot\forum\admin\database\soop_raven .mdb" Use this if you use the physical server path, eg:- C:\Inetpub\private\WebWizForum.mdb

degsy
January 23rd, 2005, 03:38 AM
The are both local addresses. They are both on your PC.

C:\Inetpub\wwwroot\forum\admin\database\soop_raven .mdb
C:\Inetpub\private\WebWizForum.mdb

You have IIS Webserver running on your PC. Anyone wanting to view those files will have to access your PC.

If this is not the case the who is your Webhost and what IP Address or Domain Name did they assign to you?

HOTSHOT
January 23rd, 2005, 03:41 AM
I am hosting on brinkster
Default Website Address:http://aabbasi.brinkster.net (http://aabbasi.brinkster.net/) Website IP:65.182.100.145
Absolute Root Path:c:\sites\Single4\aabbasi

degsy
January 23rd, 2005, 01:39 PM
:D

ok, now we've got the setup sorted out.

What files where you wanting to link to?
I would doubt that you would be able to download the database file. It would probably be protected by the host.

Your forum is located at http://aabbasi.brinkster.net/forum

The physical address for C:\Inetpub\wwwroot\forum\admin\database\soop_raven .mdb
would be http://aabbasi.brinkster.net/forum/admin/database/soop_raven.mdb

HOTSHOT
January 23rd, 2005, 09:20 PM
Ok I get it its not possible what I was trying to do. I can only use physical address in access database connection.
strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & "C:\sites\single4\aabbasi\database\wwForum.mdb;"
Anyway thanks alot for your time and help.

HOTSHOT
January 23rd, 2005, 09:33 PM
It could be done with scripting such as PHP.
The data stored in a database would need to be outputted using a script.
So how does it work out if I dont' want to show the real links to the files. So first I should save the real links to the files in a database. Then I will have to reterieve the downloading links every time from database using a script. Can I do the samething by using asp script.
:) By the way this emotion is very annoying.This dood moves too fast:rotflmao:

degsy
January 23rd, 2005, 10:00 PM
Yes you have the right idea.

It would really depend on what links or files that you want.

I'm still not totally sure what you are wanting to achieve :D