| Ban - How to ban someone ? |
| Sunny | Date: Tuesday, 2008-11-04, 9:30 Am | Message # 1 |
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
| 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 lone. 2. You can specify both full IP addresses and subnetworks (e.g. "205.105" means 205.105.x.x). 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) 2. Read comments 3. Read forums (ability to enter a forum) 4. Read entries (Guestbook, Publisher, Blog, Site News) 5. View photos 6. Browse the catalog (File Catalog, Site Catalog) 7. View Ad Board 8. Read FAQ 9. Post mail forms 10. Take part in polls 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 "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| Sunny | Date: Tuesday, 2008-11-04, 9:30 Am | Message # 2 |
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
| 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 "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| Sunny | Date: Tuesday, 2008-11-04, 9:31 Am | Message # 3 |
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
| 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 "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| shadowdragons | Date: Thursday, 2009-03-19, 12:24 Pm | Message # 4 |
|
Newbie
Group: Checked
Messages: 4
Awards: 0
Reputation: 0
Status: Offline
| 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
|
|
| |
|
| Armaros | Date: Thursday, 2009-03-19, 12:49 Pm | Message # 5 |
Haunter
Group: Checked
Status: Offline
| Look at top of your website when you're logged in as an administrator.
|
|
| |
|
| own3d | Date: Saturday, 2009-06-13, 6:32 Am | Message # 6 |
|
Curious
Group: Checked
Messages: 20
Awards: 0
Reputation: 0
Status: Offline
| 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: You have been banned from this website! Address all your questions to the site administrator. I couldn't find it where to change the text. Thanks in advance. Greetz, own3d
|
|
| |
|
| Sunny | Date: Monday, 2009-06-15, 2:55 Am | Message # 7 |
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
| 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 "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| own3d | Date: Monday, 2009-06-15, 10:52 Am | Message # 8 |
|
Curious
Group: Checked
Messages: 20
Awards: 0
Reputation: 0
Status: Offline
| where should i put this code?
|
|
| |
|
| Armaros | Date: Monday, 2009-06-15, 4:19 Pm | Message # 9 |
Haunter
Group: Checked
Status: Offline
| own3d, what's the url of that "Error" page.
|
|
| |
|
| own3d | Date: Tuesday, 2009-06-16, 7:16 Am | Message # 10 |
|
Curious
Group: Checked
Messages: 20
Awards: 0
Reputation: 0
Status: Offline
| how u mean it the url? where can i get the url of that error page? i was only doing it to test it by going to users -> view site as... and i clicked on banned. After that i just connected to my site. Greetz, own3d
|
|
| |
|
| Sunny | Date: Tuesday, 2009-06-16, 7:24 Am | Message # 11 |
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
| own3d, you should put this code in templates of the pages which you want to be unavailable for banned users.
I'm not "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| own3d | Date: Tuesday, 2009-06-16, 7:33 Am | Message # 12 |
|
Curious
Group: Checked
Messages: 20
Awards: 0
Reputation: 0
Status: Offline
| i added it in the customize design in one of the pages but it didn't work...seems like i added it to the wrong place Greetz, own3d
|
|
| |
|
| Sunny | Date: Tuesday, 2009-06-16, 7:37 Am | Message # 13 |
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
| own3d, show me the part pf the code where you added it.
I'm not "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| own3d | Date: Tuesday, 2009-06-16, 7:53 Am | Message # 14 |
|
Curious
Group: Checked
Messages: 20
Awards: 0
Reputation: 0
Status: Offline
| 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, own3d
Message edited by own3d - Tuesday, 2009-06-16, 8:01 Am |
|
| |
|
| Sunny | Date: Tuesday, 2009-06-16, 8:09 Am | Message # 15 |
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
| 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 "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |