vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   ban proxy servers (https://vborg.vbsupport.ru/showthread.php?t=46958)

BlackDeath 12-27-2002 10:33 PM

Quote:

Originally posted by hellsatan
@BlackDeath - I know you may have trouble with Proxies, but people like myself, are forced to use a Proxy to access the internet...

Our home network will only issue an Internet connection if you have the Proxy settings setup...

You should consider all sides before totally banning;)

Satan

im aware of that, thats why i requested that someone make it an option in the admin cp to allow a certain user group. i would like to create a usergroup of people w/ proxys that i want to allow in and i can edit the banip template to say that if they are using a proxy to contact me so they can get access. if i can make it an opiton in the cp, that would make it easier for my mods to manage. as it is now, i have to allow it in the code. thanks.

Chris M 12-27-2002 10:44 PM

Oh ok...

Serves me right for Skim-reading:p

Satan

Logician 12-27-2002 10:46 PM

Quote:

Originally posted by BlackDeath


im aware of that, thats why i requested that someone make it an option in the admin cp to allow a certain user group. i would like to create a usergroup of people w/ proxys that i want to allow in and i can edit the banip template to say that if they are using a proxy to contact me so they can get access. if i can make it an opiton in the cp, that would make it easier for my mods to manage. as it is now, i have to allow it in the code. thanks.

If you replace line:
PHP Code:

if ($proxyip AND $bbuserinfo[usergroupid]!=6) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 

As:
PHP Code:

if ($proxyip AND $bbuserinfo[usergroupid]==2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 

The hack will apply only to registered members and all other usergroups will be exempt..

BlackDeath 12-29-2002 12:13 AM

Quote:

Originally posted by Logician

If you replace line:
PHP Code:

if ($proxyip AND $bbuserinfo[usergroupid]!=6) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 

As:
PHP Code:

if ($proxyip AND $bbuserinfo[usergroupid]==2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 

The hack will apply only to registered members and all other usergroups will be exempt..

should this,

PHP Code:

if ($proxyip AND $bbuserinfo[usergroupid]==2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 


be actually this:

PHP Code:

if ($proxyip AND $bbuserinfo[usergroupid]!=2) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 

u have two "=" signs in there instead of "!="?? i dont' know much about vbb code but im good at seeing patterns. :banana:

Logician 12-29-2002 07:37 AM

good point but my code is correct.. ;)

In the first code while it was != it meant, if user uses proxy and IS NOT an admin. Now when it is == it means, if user uses proxy and he IS a registered member.

BlackDeath 12-29-2002 08:41 AM

cool thanks. yeah i figured it out on my own cause it didn't work the way i thought it should be. thanks.

BlackDeath 01-20-2003 12:56 AM

can u tell me what that code would look like if i had it affect more than 1 user group?

Logician 01-20-2003 08:12 AM

Quote:

Originally posted by BlackDeath
can u tell me what that code would look like if i had it affect more than 1 user group?
PHP Code:

if ($proxyip AND ($bbuserinfo[usergroupid]==OR $bbuserinfo[usergroupid]==X)) { eval("standarderror(\"".gettemplate("error_banip")."\");");exit;} 


Bhollywood 04-08-2003 02:27 PM

Has anyone got this working for 2.3.0?
I tried this last night. Just the very first part of the hack code and immeadiately got an error from it.


All times are GMT. The time now is 09:50 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.01945 seconds
  • Memory Usage 1,745KB
  • 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
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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