• Page 1 of 1
  • 1
uCause Community » uCoz Modules » Forum » Ban - How to ban someone ? (IP address, username etc...)
Ban - How to ban someone ?
SpliffDate: Saturday, 2010-09-04, 5:06 AM | Message # 1
So awsumly speshul it hurtz
Group: Senior Members
Messages: 131
Awards: 2
Reputation: 2
Status: :-(
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.

Added (2010-09-04, 5:05 Am)
---------------------------------------------
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>

Added (2010-09-04, 5:06 Am)
---------------------------------------------

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 ) 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.

Written by Sunny.


Gigabyte Zone - Downloads

This post help? Give me a +1 reputation, cheers.

 
0 Thanked you For This Useful Post:
DarkGirlDate: Wednesday, 2010-09-15, 8:00 PM | Message # 2
Member
Group: Senior Members
Messages: 11
Awards: 0
Reputation: 0
Status: :-(
Thankyou very much Spliff, i was wondering how to ban the spammers on my website i warned them liek a million times and given them reproof and now thy are spamming links as guest so i hope this works so i can ban all of their activity
 
0 Thanked you For This Useful Post:
AcidDate: Wednesday, 2010-09-15, 8:14 PM | Message # 3
Member
Group: Senior Members
Messages: 473
Awards: 8
Reputation: 14
Status: :-(
DarkGirl, Change user settings for guests.
That way they can't spam if you don't allow the to write.


 
0 Thanked you For This Useful Post:
DarkGirlDate: Wednesday, 2010-09-15, 9:40 PM | Message # 4
Member
Group: Senior Members
Messages: 11
Awards: 0
Reputation: 0
Status: :-(
I have a blog guest need to comment it otherwise i have 0 comments thats why i like the new working sript here on uCause with the -5 comments disappear
 
0 Thanked you For This Useful Post:
AcidDate: Wednesday, 2010-09-15, 9:54 PM | Message # 5
Member
Group: Senior Members
Messages: 473
Awards: 8
Reputation: 14
Status: :-(
ah, okay
To stop flooding (ALOT of spam), you can add scripts to prevent users and guest to post in an amount of time, lets say, 30-40 seconds (:

http://ucause.ucoz.com/forum/20-11-1


 
0 Thanked you For This Useful Post:
jackassDate: Thursday, 2010-09-16, 0:52 AM | Message # 6
Member
Group: Senior Members
Messages: 262
Awards: 4
Reputation: 8
Status: :-(
You can make IF with banned IP, so if someone comes to site with banned IP he will see this biggrin

HA HA LOL tongue

Attachments: 4042779.png(2.8 Kb)


 
0 Thanked you For This Useful Post:
SpliffDate: Thursday, 2010-09-16, 4:14 AM | Message # 7
So awsumly speshul it hurtz
Group: Senior Members
Messages: 131
Awards: 2
Reputation: 2
Status: :-(
lol'd jackass tongue

Gigabyte Zone - Downloads

This post help? Give me a +1 reputation, cheers.

 
0 Thanked you For This Useful Post:
uCause Community » uCoz Modules » Forum » Ban - How to ban someone ? (IP address, username etc...)
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers