Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
dark-dude
Worker
Worker



Joined: Jun 29, 2003
Posts: 146
Location: Oklahoma

PostPosted: Mon Jan 12, 2004 3:54 pm Reply with quote

Where can I get the code to put the security code in my downloads so you have to have the code typed to get a download?

_________________
DaRk-DuDe 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Jan 12, 2004 4:02 pm Reply with quote

I think if you look at the screen that asks you for your passcode there are link backs.
 
View user's profile Send private message
dark-dude







PostPosted: Mon Jan 12, 2004 4:13 pm Reply with quote

oh ok thanks buddy
 
dark-dude







PostPosted: Mon Jan 12, 2004 4:23 pm Reply with quote

i guess my next question is where can I add a download that people can't access directly...like if I add a folder in modules/Downloads/ and name it like files...how can i keep people from going right to http://sitename.con/modules/Downloads/files and getting the downloads anyways?
 
Raven







PostPosted: Mon Jan 12, 2004 4:59 pm Reply with quote

Create a .htaccess file, or add these lines to an already existing one, and place it in the folder where your files are. Substitute your real domain for YOURDOMAIN.
Code:
RewriteEngine on

RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://(.*)YOURDOMAIN\.com/.*$ [NC]
RewriteRule .*\.([mpg|mpeg|zip|tar|exe|avi|mov|gif|jpe?g]+)$ - [NC,F]
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©