uCoz Community uCoz Modules Forum Ban - How to ban someone ? (By IP address, By username ...) |
Ban - How to ban someone ? |
Ban by username. Is realized by means of reproofs.
Ban by IP address. Is realized by means of admin-bar and forbids activity on the whole site. Admin Bar » Control » IP blocking 1. Each IP address must be entered in a new line.
The bans both by a username and IP prohibits user’s activity but doesn’t prevent him from viewing the site. If you want to prohibit someone from viewing the site you must adjust user group permissions. There are the following options for this purpose: 1. View users' personal pages (profiles)
You must remember that IP ban doesn’t mean that you have got rid of a hooligan forever. Many users have dynamic IPs, some users use proxy and some have a corporative network: if you ban one user you’ll also ban a number of harmless users. And don’t forget that the ban by a username is also not the best decision: it’s not a problem to register a new username. You can use the following methods to protect your site from undesirable visitors:
1. Create a separate group with no permissions and move there all delinquents. 2. Ordinary users can read everything but their permissions to write are limited. Only checked users can write. I'm not active on the forum anymore. Please contact other forum staff.
|
Tricks
1. If you want to forbid the registration of certain usernames register them yourself and move them to the group with no rights (just to be on the safe side) or ban them by means of reproofs. 2. (the solution by one of our users) Create a "banned" group, adjust group permissions and make the pages like the following:
Code <?if($GROUP_ID$=7)?>$GLOBAL_BANPAGE$<?else?> Page content<?endif?> where 7 is the id of the banned group $GLOBAL_BANPAGE$: Code <html> <head> <title>The account is blocked</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <style type="text/css"> body{ font-family: Verdana, Tahoma, Arial, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif; font-size: 11px; margin: 0; padding: 0; /* required for Opera to have 0 margin */ } .errorwrap { background: #F2DDDD; border: 1px solid #992A2A; border-top: 0; margin: 5px; padding: 0; } .errorwrap h4 { background: #E3C0C0; border: 1px solid #992A2A; border-left: 0; border-right: 0; color: #992A2A; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .errorwrap p { background: transparent; border: 0; color: #992A2A; margin: 0; padding: 8px; font-size: 11px; } </style> </head> <body> <table border="0" width="750" cellspacing="1" cellpadding="75" align="center"> <tr> <td width="100%"> <div class="errorwrap"> <h4>Your account has been blocked: by the Administration</h4> Your username (<b>$USERNAME$</b>) on this site has been blocked by the administrator. The following reasons were provided:</p> A standard ban for all larrikins</p> If you see this then you have been banned!</p> Possible causes:</p> - For spamming</p> - For using offensive language</p> The time of ban termination: <b>Not</b>limited</p> This is an automatic blocking procedure and it doesn’t require any actions.</p> </div> </td> </tr> </table> </body> </html> I'm not active on the forum anymore. Please contact other forum staff.
|
Quote If a user tries to fool you or to resist after he/has been banned. You should delete his/her cookies, make him/her log out. Then paste temporarily the following code (before </head>) into a template of any page
Code <script type="text/javascript">if('$USERNAME$'=='username')window.location.href="http://site_name/index/10-0-0";</script> just replace "username" and "site_name" by what you need (username is case sensitive). The solution by Admin
One more interesting variant:
Code <script> var joy=1; If($USERNAME$=='THE_LOGIN_USER'){deerlake();} function deerlake(){ alert('$USERNAME$, I’m telling you the '+joy+'th time, you are not welcome here!'); joy++; deerlake(); } </script> Pop-up windows will appear even after the user has clicked ОК or X. I'm not active on the forum anymore. Please contact other forum staff.
|
i blocked a persons ip and he has told me sorry for the most part but now i need to unblock it
can some one tell me how? #996 |
Look at top of your website when you're logged in as an administrator.
Attachments:
6885203.png
(23.2 Kb)
|
How can i change the text of the blocked group?
Here is a pic so you will know what i mean. http://img386.imageshack.us/img386/3100/hmmmh.jpg So there it would say: I couldn't find it where to change the text. Thanks in advance. Greetz, |
own3d, try to do this by means of conditional operators - http://forum.ucoz.com/forum/37-471-1 Smth like:
Code <?if($GROUP_ID$=n)?> You are banned, blocked or whatever <?else?> Page content <?endif?> n - ID of the blocked group I'm not active on the forum anymore. Please contact other forum staff.
|
Code <?if($GROUP_ID$=255)?> You are banned, blocked or whatever <?else?> Page content <?endif?> <html> <head> <title>$MODULE_NAME$</title> <link type="text/css" rel="StyleSheet" href="/.s/src/css/111.css" /> <script type="text/javascript">function chbg(t,f){if (f==1){t.style.background="url('/.s/t/111/1.gif')";}else {t.style.background="url('/.s/t/111/2.gif')";}}</script> </head> <body bgcolor="#FFFFFF" style="padding:5px;"> $ADMIN_BAR$ $GLOBAL_AHEADER$ <div style="padding:3px"></div> <table border="0" cellpadding="0" height="30" cellspacing="0" width="100%"> <tr> <td align="right">[<?if($USER_LOGGED_IN$)?> <a href="javascript://" id="upml" class="fNavLink" onclick="window.open('$PM_URL$','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;"><!--<s3065>-->Private messages<!--</s>-->($UNREAD_PM$)</a> · <?if($IS_NEW_PM$)?><script type="text/javascript">function flashit(id,cl){var c=document.getElementById(id);if (c.style.color=='red'){c.style.color=cl;}else {c.style.color='red';}}setInterval("flashit('upml','')",500)</script><bgsound src="http://s102.ucoz.net/img/fr/pm.wav" loop="1" volume="0" balance="0"> <?endif?><?endif?> <a class="fNavLink" href="$RECENT_POSTS_LINK$" rel="nofollow"><!--<s5209>-->New messages<!--</s>--></a> · <a class="fNavLink" href="$MEMBERS_LIST_LINK$" rel="nofollow"><!--<s5216>-->Members<!--</s>--></a> · <a class="fNavLink" href="$BOARD_RULES_LINK$" rel="nofollow"><!--<s5166>-->Forum rules<!--</s>--></a> · <a class="fNavLink" href="$SEARCH_PAGE_LINK$" rel="nofollow"><!--<s3163>-->Search<!--</s>--></a> · <a class="fNavLink" href="$RSS_LINK$" rel="nofollow">RSS</a> ]</td> </tr> </table> $BODY$<br /> $GLOBAL_BFOOTER$ </body> </html> Greetz, Post edited by own3d - Tuesday, 2009-06-16, 2:01 PM
|
own3d, instead of Page content you must put your page content. For this very page it will look like:
Quote <html> <head> <title>$MODULE_NAME$</title> <link type="text/css" rel="StyleSheet" href="/.s/src/css/111.css" /> <script type="text/javascript">function chbg(t,f){if (f==1){t.style.background="url('/.s/t/111/1.gif')";}else {t.style.background="url('/.s/t/111/2.gif')";}}</script> </head> <body bgcolor="#FFFFFF" style="padding:5px;"> $ADMIN_BAR$ $GLOBAL_AHEADER$ <div style="padding:3px"></div> <table border="0" cellpadding="0" height="30" cellspacing="0" width="100%"> <tr> <td align="right">[<?if($USER_LOGGED_IN$)?> <a href="javascript://" id="upml" class="fNavLink" onclick="window.open('$PM_URL$','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;"><!--<s3065>-->Private messages<!--</s>-->($UNREAD_PM$)</a> · <?if($IS_NEW_PM$)?><script type="text/javascript">function flashit(id,cl){var c=document.getElementById(id);if (c.style.color=='red'){c.style.color=cl;}else {c.style.color='red';}}setInterval("flashit('upml','')",500)</script><bgsound src="http://s102.ucoz.net/img/fr/pm.wav" loop="1" volume="0" balance="0"> <?endif?><?endif?> <a class="fNavLink" href="$RECENT_POSTS_LINK$" rel="nofollow"><!--<s5209>-->New messages<!--</s>--></a> · <a class="fNavLink" href="$MEMBERS_LIST_LINK$" rel="nofollow"><!--<s5216>-->Members<!--</s>--></a> · <a class="fNavLink" href="$BOARD_RULES_LINK$" rel="nofollow"><!--<s5166>-->Forum rules<!--</s>--></a> · <a class="fNavLink" href="$SEARCH_PAGE_LINK$" rel="nofollow"><!--<s3163>-->Search<!--</s>--></a> · <a class="fNavLink" href="$RSS_LINK$" rel="nofollow">RSS</a> ]</td> </tr> </table> <?if($GROUP_ID$=255)?>You are banned, blocked or whatever<?else?>$BODY$<?endif?><br /> $GLOBAL_BFOOTER$ </body> </html> You can put <?if($GROUP_ID$=255)?>You are banned, blocked or whatever<?else?> not before $BODY$ but somewhere above if you wish. I'm not active on the forum anymore. Please contact other forum staff.
|
| |||