![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programmer
|
You can do it with a ActiveX control. With active x make it like toolbar.yahoo.com how they do a download without using the IE popup or anything this will prevent from anyone getting the url. And to protect the html page can b done with a cookie by one page placing a cookie if a correct password is entered and the download page reading it. If this is what u meant
__________________
Get programming and game creation tutorials and discuss apon you peers at http://s14.invisionfree.com/tsoft We also accept custom software requests and new mods will be needed soon |
|
|
|
|
|
#12 |
|
Programmer
|
![]() Here is an example of an .htaccess file you could utilize to do what you want. RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]If you want to have some fun replace that rewrite rule with this one, RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L] |
|
|
|
|
|
#13 | |
|
Newbie
Join Date: Aug 2006
Posts: 11
Rep Power: 0
![]() |
Quote:
I say that if the whole point of this is to only let MEMEBERS download a file (and it is free to be a member - like on this site) then who CARES if someone fakes a refer?! If they want to go to all of that trouble just to get a file - let them. After all, they would just register download the file and be gone anyways... So you see, the result is the same... so just save the time and step a simple .htacess refer. (again assuming that it is free to join ) |
|
|
|
|
|
|
#14 |
|
Programming Guru
![]() |
You could also have a download directory which uses mod_rewrite to reroute requests to a PHP script which makes sure that an expiring session has been started by your site containing info like the last page they accesed (you could even make sure that page has a link to said file on it if you're pedantic).
__________________
|
|
|
|
|
|
#15 |
|
Newbie
Join Date: Oct 2006
Posts: 20
Rep Power: 0
![]() |
other people have had this exact same issue. Here is a pretty effective way of solving it. referers can be faked, but it will stop 99% of the people hotlinking your files/images:
http://jeremy.zawodny.com/blog/archives/000826.html another way of doing it (if mod_rewrite is not supported on your server/host), is to have all your downloads point to a php script that checks the referer (variable is: $_SERVER['HTTP_REFERER']). If it's not your site, then redirect them. Otherwise, let them download your file. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnlineTextEditor.Com! | Sane | Show Off Your Open Source Projects | 43 | Jun 16th, 2006 8:55 AM |
| Command Prompt | SkyPioneer | Coder's Corner Lounge | 5 | May 3rd, 2006 10:07 PM |
| add mutiple users to the smbpasswd file. | Pizentios | Bash / Shell Scripting | 3 | Oct 20th, 2005 12:48 PM |
| After execution - Error cannot locate /Skin File? | wchar | Visual Basic | 1 | Mar 5th, 2005 9:04 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |