Jump to content

Recommended Posts

Posted
You can add a deny from 62.56.129 in your htaccess file to block the entire range from 62.56.129.0 to 62.56.129.255.

 

 

But I only want to block the range above. Do have to put in every address or is there a shortcut

Posted

I did a google search and found this:

 

RewriteEngine On

RewriteCond %{REMOTE_ADDR} ^aaa\.bbb\.(23[2-9]¦24[0-2])\. [OR]

RewriteCond %{REMOTE_ADDR} ^aaa\.bbb\.243\.([0-9]¦[1-9][0-9]¦1[0-4][0-9]¦15[0-1])$

RewriteRule .* - [F]

 

where aaa and bbb are the first respectively second '***' from your range. Be sure to replace the broken pipe characters ¦ with the real ones from your keyboard.

 

Adapt it to your range.

Posted (edited)

Seriously over complicated there

 

>order allow,deny
deny from 62.56.129.
allow from all

 

hxxp://www.javascriptkit.com/howto/htaccess5.shtml is a great source of htaccess info.

Edited by carbonize
Posted

Ah yes you're right. Nasty habit I have of speed reading forums.

 

Using my method he could use

 

deny from .satcom-systems.net

 

but for some reason the server doesn't always get the hostname of visiting ip addresses.

Posted

Within IP Deny Manager:

 

You can specify denied IP addresses in the following formats:

10.5.3.3 Single IP Address

10.5.3.3-10.5.3.40 Range

10.5.3.5-40 Implied Range

10.5.3.3/32 CIDR Format

10. Implies 10.*.*.*

 

So in your case, you could use any one of the following formats:

62.56.129.128/27

62.56.129.128-159

62.56.129.128-62.56.129.159

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...