vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Attachment and avatar hotlinking protection (1.0.1) (https://vborg.vbsupport.ru/showthread.php?t=47306)

Schorsch 01-03-2003 02:59 PM

just installed, works fine.

Thanks https://vborg.vbsupport.ru/external/2011/01/19.gif

w596 01-03-2003 03:00 PM

Yes you did see that... I posted the question early this morning but found what I was looking for in another thread, then deleted my post. Sorry about that. lol ;)

N9ne 01-03-2003 03:10 PM

I believe the same code can be used for avatar.php to protect avatars :)

fury 01-03-2003 03:40 PM

Yes, I think I will add that to the hack.

fury 01-03-2003 04:28 PM

Hack has been updated to include custom avatar hotlinking protection. See the first post for info, or grab the text file for upgrade instructions :)

nuno 01-03-2003 04:46 PM

No joy fury
Apache test log file
Code:

[Fri Jan 03 10:43:59 2003] [error] PHP Notice:  Undefined index:  HTTP_REFERER in c:\apache\htdocs\avatar.php on line 6
[Fri Jan 03 10:43:59 2003] [error] PHP Notice:  Use of undefined constant host - assumed 'host' in c:\apache\htdocs\avatar.php on line 8
[Fri Jan 03 10:43:59 2003] [error] PHP Notice:  Undefined index:  host in c:\apache\htdocs\avatar.php on line 8


fury 01-03-2003 04:55 PM

Weird...

Does the attachment hotlinking protection work on the same server?

You got an MSN messenger addy I can contact you at? If not, just send me your avatar.php to dennis@xibase.com and I'll take a look at it

nuno 01-03-2003 04:58 PM

fury, the avatar hotlinking is not working at otcentral as well, after the redirect message you get kicked to profile page and the avatar is broken.
Check your log files. ;)

nuno 01-03-2003 05:03 PM

Attachment hotlinking is working flawlessly, so it went to live forums.
Avatar hotlinking is being tested at localhost.

fury 01-03-2003 05:05 PM

Avatar hotlinking seems to be working fine for me on both localhost and live server... :confused:

Try this: Move this line
Code:

set_magic_quotes_runtime(0);
to just above
Code:

$c_url = parse_url($GLOBALS[HTTP_REFERER]);


All times are GMT. The time now is 01:42 AM.

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.01003 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete