Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old August 24th, 2002, 11:16 AM
VeNoM33 VeNoM33 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 9 VeNoM33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Download Protector, Anti Leech

I am intersted in protecting my downloads, like this, please tell me how to do this :
http://rebirth.cdrsoft.cc/script/1030225564%201285395342/cr_qtp60.zip
http://rebirth.cdrsoft.cc/script/1030225580%201096223371/cr_qtp60.zip

The text in bold, is some kind of virtual directory, created after rererer check, random ? How can I do that ? This is ideal, to generate a random directory, so that no one knows the actual location on the server.

Reply With Quote
  #2  
Old August 24th, 2002, 02:17 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 76
Send a message via AIM to Hero Zzyzzx
that "random directory" is most likely not a physical directory at all, but a session id.

The site probably has an apache rewrite rule to take this URL and pass it into either a mod_perl handler or a PHP, perl or other script, using the session id to track who you are.

Do a search of the apache forum for "mod_rewrite" for ways this can be done.

Reply With Quote
  #3  
Old August 25th, 2002, 03:05 AM
VeNoM33 VeNoM33 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 9 VeNoM33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How about symlink the file into the random directory
Then make a .htaccess file.

Reply With Quote
  #4  
Old August 25th, 2002, 07:23 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 76
Send a message via AIM to Hero Zzyzzx
Sure. Whatever.

I REALLY don't think that's what that's showing you, though. It would be very inefficient to create random directories and manage them- you'd have a lot of duplicated files and a potential management nightmare as you try to figure what directories you can/can't delete. I really doubt a clueful server admin would let this type of system get implemented.

Using a rewrite rule is the way that stuff like this is normally done- for instance (and this is straight from a production system):

in an httpd.conf virtualhost directive:
Code:
    RewriteEngine on
    RewriteRule ^/page/(.*) /perl/doc.cgi?rm=show_page&id=$1 [L,P]


will rewrite any request to "http://www.domain.com/page/2343" to
"http://www.domain.com/perl/doc.cgi?rm=show_page&id=2343"

It looks like "page" is a directory, but it's just a flag for a rewrite rule. That's probably what's happening here- the rewrite rule is written to extract the session id and pass it into a script of some sort, and then the id is used as a lookup to determine whether or not a user can gain access to a resource on your server. No directories involved at all.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Download Protector, Anti Leech


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway