vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Prevent to copy or share my direct link`s (https://vborg.vbsupport.ru/showthread.php?t=317598)

Wedframe 03-02-2015 05:36 PM

Prevent to copy or share my direct link`s
 
Hello! I need to hide direct link`s from my own(external for forum site) server. I don`t mean hide from unregistered users or from users from certaine usergroup. I want totally hide links from ALL users, but keep with the possibility to use this links... Some mode/hack or something else with which I can do the following:

I create post and put there link to my file:
HTML Code:

Hello. This is link to my file http://domain.com/link/to/my/file.zip
During the save post, this mod/hack whatever... change the text of my link to something like this:
HTML Code:

Hello. This is link to my file http://domain.com/somethig_else_text_what_replace_the_real_url
moreover in that case, user what will be click on replaced url, must be aimed on REAL link to my file and cant see this link(not in post and not in status bar of browser).

Another words, I want to prevent to possibility copy my link for sharing them on third-party resources. And... if bad-user)) decides to use my link on his website, this link must will first to bring to MY forum. And only after this(if user will be registered and logged in) redirect hi to my file.

I think the real url must be replaced with link to php-script, which will somehow extract real url(for example from sorce text of current post in DB), and after this redirect the user to my real url.

I understand what on my server I need to additionaly hide direct links... but this is another story )))

I will be grateful for any help or hint how to properly realize my task. Many thanks!

final kaoss 03-03-2015 05:25 PM

Make use of attachments, you can configure them to do everything that you mentioned, so long as everything is on one server.

Wedframe 03-03-2015 05:56 PM

Thanks for reply.
How can I use attachments if my files and my forum placed on two several servers?
Virtual file system mounting to folder with my forum? You mean this?

Wedframe 06-28-2015 04:56 AM

Anyway... I did it with mod Downloads II. (may be for somebody who need this functionality too)


All times are GMT. The time now is 11:14 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.02129 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete