Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to limit all users' downloads
Old 01-25-2007, 10:56 PM How to limit all users' downloads
Junior Talker

Posts: 2
Trades: 0
Hi, all.

I'm an amateur webmaster and have a little business where I sell customers certain downloadable files they get from my site. The directories are password-protected through htacess. (I only know a little about htaccess since the Dreamhost user panel does the work for me.)

I've seen simple things to add to the htaccess file where I can deny specific IP addresses or blocks, but I'd like to block any IP/user who reaches my defined GB download limit.

Dreamhost didn't have the info and their support told me to look around, I did...nothing for a while...and now I'm here. Any ideas, spelled out for a non-professional, would be much appreciated.

Cheers,

Robb
robbross is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-26-2007, 03:55 PM Re: How to limit all users' downloads
Mattmaul1992's Avatar
Ultra Talker

Posts: 486
Name: Matt
Trades: -1
Hello,
What you'll need to do is confirm every time each IP makes a download and make a MySQL, or whatever PHP compatible database you use with the following fields-
ip_address
time
Simple, huh? After that you will need to add PHP that will access the database that you had used to work with and then see if they have reached the defined limit. You can kill the time column I put up there earlier if you don't want to reset the defined limit after a certain amount of time.
If you need someone to do this project for you I am currently working on a project but I will be available soon. PM me if you are interested.
Mattmaul1992 is offline
Reply With Quote
View Public Profile
 
Old 01-27-2007, 06:09 PM Re: How to limit all users' downloads
Junior Talker

Posts: 2
Trades: 0
Thanks. I guess that sounds simple...to you. Yeah, I'll PM you.

R
robbross is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to limit all users' downloads
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11287 seconds with 12 queries