vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Linking from a vBulletin post to a Web Page with security (https://vborg.vbsupport.ru/showthread.php?t=158702)

DCAUser 09-25-2007 03:52 AM

Linking from a vBulletin post to a Web Page with security
 
I want to provide a link from a vBulletin post to a page on an external website (eg http://www.abc.com/secure) that can only be accessed if it is being accessed from vBulletin.

In other words, if anyone types http://www.abe.com/secure in the address bar they will NOT be able to access that webpage.

Can anyone provide any suggestions on how to easily do this?

What sort of HTML/JavaScript coding would be required in the thread?

Thanks.

Dismounted 09-25-2007 04:21 AM

This would more be doing with the coding of the "secure" page, and not vBulletin. You'll need to check the referrer on the "secure" page. Although nothing is foolproof.

DCAUser 09-26-2007 02:34 AM

How do I pass the referrer to the 'secure' page?

I am wanting to POST a parameter from the thread (in HTML/JavaScript code) and then check for the parameter in the Target HTML web page and not allow display of the web page if the posted parameter is NOT ok.

See:

http://www.jguru.com/faq/view.jsp?EID=586493

Would this be possible?

Dean C 09-26-2007 04:30 AM

Well for starters don't ever use the referrer header for anything important. It can be easily spoofed and turned off. The best way of doing it is to integrate your forum login into the third-party script


All times are GMT. The time now is 11:57 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.01479 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
  • (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