Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2006, 12:06 AM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Code's to call upon url links in the db that user can't see

The way i wanna do things on my forum is to have people upload html files as attachments that open automatically once they download it by use of mimetype. And inside the html they have links to files, but links would not be inside the html file. It would be in the forums database instead, allowing the link source to be hidden from user period. Now i know one of them ways to do that is to have the database act like a mirror for the file, in which to the user it would seem they are getting the file directly from your site. Is there a way to accomplish this without using the bandwidth of your forum server? Please anyone say if this is usefull too, as i could use something like this.

Also a person would need to be logged in and have the correct permissions to fetch the certain file. All i want to know is is this possible? And if so, could someone spend the time to build it?
Reply With Quote
  #2  
Old 01-27-2006, 07:01 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To tell you the truth, i don't have a clue what you are talking about. Please try to explain a bit better. (sometimes less info is better)
Reply With Quote
  #3  
Old 01-27-2006, 09:50 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think what he means if you viewed the source you could see where the file is coming from.

Like on vbulletin the images have a field in the database that points to a directory on the server.

@Replicators
If this is what you mean then I would just use .htaccess in the folder where the files will be stored.

I'll try to find the .htaccess

not tested but try

Save file as .htaccess (nothing more, nothing less.)
Code:
IndexIgnore *
Reply With Quote
  #4  
Old 01-28-2006, 05:55 AM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, the way we do our downloads handling is have each file owner make their own html file and attach it to the forum. In the html file would be a code to call upon a link inside the forums database in which if a person clicked it it would mean they would have to be logged into the forums in order to retrieve that file. (to prevent off site linking) and also if at all possible to "Hide" the direct link source of that file in question.
Reply With Quote
  #5  
Old 01-28-2006, 06:40 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't even comprehend that.

Let me try to understand this.
How can they make a link in an HTML file that calls the database?
Show me an example.
Reply With Quote
  #6  
Old 01-28-2006, 07:55 AM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All i want to accomplish is using the attachments as archives for downloads. Now even if i put in a link to the forums which redirects to the actual file, but hides the direct file directory. This would be succeeding!

Like a hack that has a specific place, and you make a link that points to it for example (http://www.yoursite.com/forums/linx.php?l=11) which would call upon link number 11 that would have to be registered firsthand by the person who submits the link (Either by moderation or something) They would have to log in to the forums to get the link,and somehow hide the direct link source of the file which would prevent off-site linking. Is this possible?
Reply With Quote
  #7  
Old 01-28-2006, 09:20 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could make a script that redirects via HTTP headers, that way the real location will not show up in any sourcecodes, but it's still possible to find out!

Another option would be a downloadscript that sends the file to the browser but does a refferer check before sending (and/or checks if the user is currently logged in to the forum) and it gets the files from a directory that's not accessible from the webserver.
Remotelinking is not possible that way - I'm using such a script on some of my own sites.

The above could be done with a simple .htaccess as well, but the script is more flexible
Reply With Quote
  #8  
Old 01-28-2006, 07:22 PM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could u by any chance make that mod then? I have nothing to give in return but it sure would make my day. Also giving the option to whether have it partially secure or fully secure. Just by a link you put into the forums where you would have to be logged in to get the file.
Reply With Quote
  #9  
Old 01-29-2006, 04:30 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a MOD floating around here called "EC Downloads" or such.
Maybe that also does what you need - if not I could release my script here, sure
Reply With Quote
  #10  
Old 01-29-2006, 06:29 PM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The links and download manager does it, but i don't want to do it that way. As long as i can put links into txt or html files and have them point to a place to the forums which would make people login first and then get the files i would be most happy. And also hide the direct file source.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:32 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
  • Page Generation 0.03951 seconds
  • Memory Usage 2,246KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete