The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Cookie Ban ??
hello mates
im looking for a mod well this mod will put a cookie on someones computer if they are banned via IP and try to access the forum. It then will check for that cookie every time they try to access the forum, and will block them. If there is something like this it would be most usefull for keeping people with dynamic IPs out.??????? it would be great if anyone can help me |
#2
|
||||
|
||||
i figured ou something like this and i dont know how to install this to vbulletin...
HTML Code:
<?php $IP = $_SERVER['REMOTE_ADDR']; if ($IP =="x.x.x.x") setcookie(Ban, 'cookietest', time()+3600000000); else if ($IP =="x.x.x.x") setcookie(Ban, 'cookietest', time()+3600000000); else if ($IP =="x.x.x.x") setcookie(Ban, 'cookietest', time()+3600000000); else if ($IP =="x.x.x.x") setcookie(Ban, 'cookietest', time()+3600000000); else if ($IP =="x.x.x.x") setcookie(Ban, 'cookietest', time()+3600000000); else if ($IP =="x.x.x.x") setcookie(Ban, 'cookietest', time()+3600000000); else if ($IP =="x.x.x.x") setcookie(Ban, 'cookietest', time()+3600000000); else echo ""; ?> <?php if ($_COOKIE['Ban']) die ('Sorry, you are banned from using this forum!'); else echo ""; ?> |
#3
|
||||
|
||||
this would be a great hack if you guys help me to finish this and i know it will be use full to other vb users
|
#4
|
|||
|
|||
Why would you do it that way?
A better solution would giving the user a cookie then check if the user has the cookie PHP Code:
PHP Code:
|
#5
|
||||
|
||||
where do i add this codes how do i creae a coockie i dont have any idea can you help me out with that???
|
#6
|
||||
|
||||
anybody to help me any body good on cookies ?????
|
#7
|
|||
|
|||
This is actually a good idea, but as the original poster said, the ideal thing would be to send two cookies. One with the forum name etc and the seccond with a name that we would choose.
That way if user tries to delete cookie, more than likelly he is not going to delete all becaue it is a pain in the rear, he would then look for the cookie and delete the one with the domain name and call it the day. Not knowing that there is a seccond cookie. Better yet, is there a way to set a cookie that would record the mac adress of the user? I be willing to pay $$ for a good security hack like this. |
#8
|
||||
|
||||
i just need to kno how to set cookies and send them to the users how do i do that my question is easy is that...???
|
#9
|
|||
|
|||
Mac addresses are useless.
|
#10
|
||||
|
||||
i found this on web and this hack is for invidionize boards but can we use it for vbulletin too??
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|