![]() |
This is a pretty coool hack that me and my friend made.
What is make people login or register to download a file from your site: ex: http://www.youforum.com/download.php...d.com/file.zip When you click that it wil send you tto a login page were you use your *** login info to download the file ot sign up. After you are logged in it will store cookies so you wont have to login. WORKS WITH ALL vBulletin VERSIONS I will have a working preview up soon! |
do u have any screenshot??
let's may be clear to know what this hack is?? |
i will have a working preview version in an hour
|
|
Intresting, but does it have to look like that. I like it but I would rather have it look like the normal not logged in type screen. Very nice though.. ;)
|
yeah u can edit the login.html template ^_^
you can make it look like you want. |
So if i install this hack login.html will look like the default or like the page you linked to?
|
You can accomplish this already with no hack. Just go into your admin CP and edit the permissions for unregistered/ users not logged in and set download attachments to no.
|
Quote:
-Syphin |
Thanks you guys!
|
isn't this useless?
if you put the file name as http://www.youforum.com/download.php? file=http://www.download.com/file.zip You are exposing the url and people can see which file they are trying to download! |
Well normal attachments are stored in the database so unless you have permissions you can't d/l them
|
well what i am doing is adding some other features to it so wait up
|
Quote:
|
Gotcha but then isn't this:
Quote:
|
I am using this with a popup so people wont see the file url
|
You also disabled right clicking so they can't copy the URL?
|
yep will that is what I reccommend you do to becuase i like it works fine this way
|
most useless hack i hae ever seen
|
Quote:
|
Why don't you store the path in the database and just use the id to download? Like download.php?id=2543
|
This would not work for me at all. i couldnt get past the login screen to download the file..
|
you have 2 choices to correct this problem:
(1) put the files on a folder outside the web "not accessible unless you call it from the php file" (2) Integrate D-Man from http://www.accountbiller.com with vB |
Quote:
|
Quote:
|
Quote:
-Syphin |
[QUOTE]Originally posted by Goldfinger
Its not that easy to get around it when the link is in a pop-up. |
Quote:
Easy as pie! because your not using the right mouse button at all - the protection doesnt even come into it. |
Quote:
I wanan see... lol I might use this very soon if you release it... :) -Syphin |
Here is what you do to do it good. First off...why would you want to attach files...that slows down the database considerably if you have a lot of files and file sizes are big.
anyway. Step 1 download your default style Step 2 re-upload it as a new style and re-name it "Files" Step 3 Now that you have a whole new set of templates, open up the "forum_display" template in the "Files" set and edit all the stuff out and put in html for a files page. Save it. Step 4 create a new forum in your list of forums called "Files" and apply it (make it visible) Step 5 go to the new forum link on your main forum page and right click on the link to that forum and save it to notepad or something. Step 6 Now go back into "Forums and Moderators" and click "Modify" and edit the new forum "Files"....make it not appear now and be sure to edit permissions for the forum to allow or disallow whatever usergroup you feel right. You can even make it a private forum. Make the style be "Files" and make it "Overide users custom settings" and "Not user selectable" Step 7 Make a link to the forum "Files" somewhere on your site. and now you have an integrated files page on your forum that utilizes the login process if you choose. Now that you have integrated a files page in your forum you now need to get a file called "downloader.cgi" and it is an anti-leech script that stops any linking to files from anywhere that you do not specify. It is very easy to set up and works great and even promotes you to organize your files in a good manner. you put the code on every link to a file and the script decides whether or not you have come from the right plcae and you can make it re-direct to a custom page if they have not. Done. This works very good for me but like it has already been said.....nothing will stop them from posting anything elsewhere....this only preserves you bandwidth and allows you do either make it private and decide who gets in and who doesn't or can be set just for members only.....all in how you set the permissions. I am very new to php and this is an okay solution to integration issues until I get better and can make a custom php page that has all the "requires" and "else's" to be able to integrate without a whole nother set of templates. anyway...this works great and can be used to integrate many other kinds of things into your forum. Have fun |
Is this what you are getting at?
My site is hosted on its own domain (blah.com), as well as my forums on another (blahforums.com). When you try to access the directory where my files are at /files (blah.com/files) it asks you for a a login and password. It does this check to the forums then proceeds. If not, you get no file. I also have a private members section where it does the same but also checks to see if they have a flag that I have issued them. Without this flag, no private file. This is done with .htaccess and the sql database of the forums. |
I'm going to use this :) Using a popup script and disabling viewing of the address bar or the right mouse button, so thanks for the hack :)
|
erm, there's like 10 errors in your demo o.O
ok 6...^_^;; |
Quote:
What a hack!!! :?: |
Well I know why there are errors...-__-
because you have to edit the downlaod.php I found this script for download at php.resourceindex Its similar atleast. I am gonna make my own hack similar, but better ;) To this, now how would I go about making that http://yourdomain.com/download.php?file=download12312 ? |
Though I am giving GameZilla credit for the IDEA.....
New Name :) Don't want to get flamed by Zilla here |
i think that we all just want a working one :)
Zilla has made the 1st step ;) |
Yea I got it working on vb 2.2.2 with no errors.....
time to hide the url of the file in the DB |
Quote:
|
this hack has too many errors, but its pretty cool!
|
All times are GMT. The time now is 10:39 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|