vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Cerb's Anti-Proxy Hack - 15 seconds install (https://vborg.vbsupport.ru/showthread.php?t=68590)

pjdaley 08-21-2004 06:33 PM

thank you sir

Remi 08-21-2004 07:35 PM

Nice work

Is there a way to exclude some proxies please :)

Thanks

Cakes 08-21-2004 07:41 PM

Stupid question, but won't this block all AOL users and anyone else who's ISP automatically goes through a proxy (like Freeserve for me)?

Cerb 08-21-2004 07:53 PM

This blocks all proxies that gives out HTTP_X_FORWARDED_FOR, HTTP_FORWARDED or the most common, HTTP_VIA.

High anonymity (sp?) proxies don't return any of those variables, so if you're on one of those you're fine.

Couldn't really say if AOL has one of those variables since this connection is very uncommon where I'm from.


And @ excluding proxies, yes there's a way, you can add safe proxies in an array and check if the remote address = this proxy.



PHP Code:


// Add the safe proxies in this array
$safe_proxies = array('127.0.0.1','127.0.0.2','24.223.123.123'); // Safe Proxies

if (( isset($_SERVER['HTTP_FORWARDED']) || isset($_SERVER['HTTP_X_FORWARDED_FOR']) || isset($_SERVER['HTTP_VIA'])) && !in_array($_SERVER['REMOTE_ADDR'],$safe_proxies) )
{    die(
"No Proxies");    } 


Wential 08-22-2004 04:12 AM

Excellent Hack!

Jolten 08-22-2004 04:46 AM

Thanks for sharing Cerb. Installed and happy.

Wential 08-22-2004 04:53 AM

1 question. Is there an easy way to test this?

Floris 08-22-2004 07:53 AM

Quote:

Originally Posted by Wential
1 question. Is there an easy way to test this?

Use your ISP proxy, and surf to your own site. :)

BladeZ 08-22-2004 09:28 AM

Great Hack,thanks!!

Bison 08-23-2004 01:44 AM

Very nice ... ;)

Click install!


All times are GMT. The time now is 11:59 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.01478 seconds
  • Memory Usage 1,733KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_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