vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Cookie to prevent access of unwanted user (https://vborg.vbsupport.ru/showthread.php?t=32419)

Mark Hewitt 11-15-2001 10:00 AM

We have a user who is consistently accessing the board to cause trouble and to make threats on the life of one of my moderators (the police are involved).

However I was thinking about a general way to get rid of someone permanently that doesn't involve email or IP addresses, both of which can change.

Is there a way that I can write a hack so when someone who I know is a person I don't want logs into the forums a cookie (or other such thing) is placed on their computer to idenitify who they are and then thus denied access to the forums.

Critically this cookie should not be deleted when a user logs out of the forums. So even if he logs out and registers under a different name he will still be denied access.

I know that he can get rid of the cookie manually if he wants to. But I don't think he has the knowledge for that sort of thing.

Your thoughts appreciated.

Thanks

Admin 11-15-2001 10:23 AM

I guess you could put code to place a cookie if username is XXX, then after he visits once remove the code.

Then add a check to the checkipban() function to also make sure the user doesn't have this cookie in his copmuter.

Mark Hewitt 11-15-2001 10:28 AM

Thats exactly what I'm looking for. Any pointers on how to do this. Or places to look I can get examples of the code I need?

Also my site uses multiple sub-domains
e.g. site1.motorsportforum.com
site2.motorsportforum.com
I assume for the purposes of cookies these are treated as two seperate domains and a process running under the site2 domain would not be able to look at the site1 cookie?

I wonder if there is some way to make sure the checkipban function will always run from the same domain name. Explicitly call it from a program perhaps. So this person cannot just type in a new random subdomain.


All times are GMT. The time now is 07:08 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.01045 seconds
  • Memory Usage 1,708KB
  • 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
  • (3)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