• Page 1 of 3
  • 1
  • 2
  • 3
  • »
Forum moderator: bigblog  
uCoz Community » Communication » uCoz Discussions » How To Block a persons ip adress (How to ban a person from website via IP Adress)
How To Block a persons ip adress
Moe
Posts: 12
Reputation: 0

Message # 1 | 7:50 PM
How do i Block A person via ip i have a few people i want to ban from visiiting my website i do know you have to go to the upper menu and add it to the block list but i dont know were to find the persons ip please help thanks smile cool
Xayaan
Posts: 558
Reputation: 13

Message # 2 | 5:56 AM
Moe, You can find out the persons IP address by looking at the forum posts. Given below is a example.


The IP address is given below or above (in some templates) of the the forum posts OR the IP address is also seen in the User's profile.



And after finding out the User's IP address , you can simply block them via Admin bar -> Control -> IP Blocking .

Thank you for the question.

My Skype : xayan123 | My Twitter : @Officialxayaan
uID : - Zayaan Ibrahim | Need a professional design? Check out my Portfolio
Post edited by Xayaan - Wednesday, 2013-04-17, 6:01 AM
Horex
Posts: 34
Reputation: 0

Message # 3 | 10:49 AM
And this IP Blocking apply to anonymous users for which I know their IP address from StatCounter??

Bad user after I block his IP see my pages or he can´t go on my blog??

Thank You for reply
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 1:32 PM
Horex, when you block a user's IP, the user can view your website, but can't post and comment anything.
I'm not active on the forum anymore. Please contact other forum staff.
Horex
Posts: 34
Reputation: 0

Message # 5 | 2:06 PM
Hmm .. it´s bad...I need close his IP completely sad Another option is?

Thank You Sunny
Sunny
Posts: 9296
Reputation: 456

Message # 6 | 2:19 PM
Horex, you could use conditional operators: http://forum.ucoz.com/forum/37-471-1 , but you will need to add the code to all website templates that you want to close for him.
I'm not active on the forum anymore. Please contact other forum staff.
Horex
Posts: 34
Reputation: 0

Message # 7 | 5:59 PM
Ouuu ... it´s too complicated to me friend sad

Give me some example how to do it please? IP 62.204.252.126

Imaginary example ... but where I give ... very thanks
Sunny
Posts: 9296
Reputation: 456

Message # 8 | 10:48 AM
Horex, you need something like this:

Code
<?if($IP_ADDRESS$='62.204.252.126')?>You are not allowed to view this page<?else?>Page content<?endif?>

I'm not active on the forum anymore. Please contact other forum staff.
Horex
Posts: 34
Reputation: 0

Message # 9 | 6:01 PM
Great and where do I put it...please for path? I have only open blog for each ... and I want he could not see my blog...

it means in Control Panel / Blog / Module design customization ?? And where here?

Thank You !!!!

Added (2013-11-20, 12:01 PM)
---------------------------------------------
or if I want to block all users from Czech Republic? When he come to my blog from another IP , is all for nothing ....

Sunny
Posts: 9296
Reputation: 456

Message # 10 | 8:55 AM
Quote Horex ()
Great and where do I put it...please for path?


Yes, you go to Control Panel/Blog/Module design customization, and then in all templates you paste at the beginning

Quote Sunny ()
<?if($IP_ADDRESS$='62.204.252.126')?>You are not allowed to view this page<?else?>


and at the end

Quote Sunny ()
<?endif?>


Quote Horex ()
or if I want to block all users from Czech Republic? When he come to my blog from another IP , is all for nothing ...


It's not possible to block users from a certain country. And in general, IP blocking is not a very reliable method because a user can always access your website via a proxy.

I'm not active on the forum anymore. Please contact other forum staff.
Horex
Posts: 34
Reputation: 0

Message # 11 | 6:56 PM
Great work I try it !! Thank You very much Sunny You´re great help-man!!!

Added (2013-11-21, 12:56 PM)
---------------------------------------------
When I want save it ... write me this error in red colour : Template does not contain the required code $POWERED_BY$

what is´t??

Sunny
Posts: 9296
Reputation: 456

Message # 12 | 11:52 AM
Horex, check whether you have $GLOBAL_BFOOTER$ in the template.
I'm not active on the forum anymore. Please contact other forum staff.
Horex
Posts: 34
Reputation: 0

Message # 13 | 1:57 PM
Here is the top of page and end of Blog main page, where is $GLOBAL_BFOOTER$

<html>
<?if($IP_ADDRESS$='62.204.252.126')?>You are not allowed to view this page<?else?>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>$MODULE_NAME$ - $SITE_NAME$</title>
<?$META_DESCRIPTION$?>
<link type="text/css" rel="StyleSheet" href="/.s/src/css/601.css" />
</head>
.
.
.
.
.
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background:url('/.s/t/601/35.jpg') bottom repeat-x;">
<tr><td width="175"><img src="/.s/t/601/36.jpg" border="0"></td>
<td align="center">
$GLOBAL_BFOOTER$
</td>
<td width="175"><img src="/.s/t/601/40.jpg" border="0"></td>
</tr>
</table>

</body>
<? Endif>
</html>

and I give <? Endif> under </body> ... is that correct?

Bye friend

Added (2013-11-22, 7:57 AM)
---------------------------------------------

....and if it then I want to try with my IP address if it works ... it´s also possible? ... Only on some one page ?
Post edited by Horex - Friday, 2013-11-22, 2:13 PM
Sunny
Posts: 9296
Reputation: 456

Message # 14 | 2:04 PM
Horex, what's your website address? And yes, you can test it with your IP.

Quote Horex ()
and I give <? Endif> under </body> ... is that correct?


If you want to hide just the main content area, you can use the conditional operators around $BODY$.

I'm not active on the forum anymore. Please contact other forum staff.
Horex
Posts: 34
Reputation: 0

Message # 15 | 2:03 PM
Hi Sunny ,

Now is all OK and is it functional!!!!!!! SUPER!!! YOU´RE MASTER!!! I have some error in the bottom of the screen ... I found it and solved!!! Now is hidden IP functional!!! Thank You for Your SUPER HELP!!! smile

Added (2013-11-25, 8:03 AM)
---------------------------------------------
little question on the end friend: when I want blocking more IP adress ... in how form i can write it?

like this?

<?if($IP_ADDRESS$='62.204.252.126,65.207.254.127 ')?>You are not allowed to view this page<?else?>

just a comma between IPs?
Post edited by Horex - Monday, 2013-11-25, 3:01 PM
uCoz Community » Communication » uCoz Discussions » How To Block a persons ip adress (How to ban a person from website via IP Adress)
  • Page 1 of 3
  • 1
  • 2
  • 3
  • »
Search: