Jump to content

Recommended Posts

Posted
Deny/Allow Certian IP Addresses

 

In some situations, you may want to only allow people with specific IP addresses to access your site (for example, only allowing people using a particular ISP to get into a certian directory) or you may want to ban certian IP addresses (for example, keeping disruptive memembers out of your message boards). Of course, this will only work if you know the IP addresses you want to ban and, as most people on the internet now have a dynamic IP address, so this is not always the best way to limit usage.

 

You can block an IP address by using:

 

deny from 000.000.000.000

 

where 000.000.000.000 is the IP address. If you only specify 1 or 2 of the groups of numbers, you will block a whole range.

 

You can allow an IP address by using:

 

allow from 000.000.000.000

 

where 000.000.000.000 is the IP address. If you only specify 1 or 2 of the groups of numbers, you will allow a whole range.

 

If you want to deny everyone from accessing a directory, you can use:

 

deny from all

 

but this will still allow scripts to use the files in the directory.

 

I found this info through Google.

Posted

Open up file manager in cPanel and go into your public_html folder. There should be a .htaccess file there if you are using the ban IP from cPanel. It should already have the IP addresses in there that you have already banned.

 

How do you know the IP you are blocking is still accessing your site?

Posted

The htaccess file is simply a text file you can place in public_html. Depending what you put in this file you can control access, errorpages etc.

 

Here is more info about what you can do with this file:

javascriptkit.com/howto/htaccess.shtml

Posted

Look, we're trying to help you. Please answer these questions.

 

1. How did you ban these IP numbers?

 

2. How do you know the IP numbers you banned are still accessing your site?

 

Once we have that maybe we can instruct you on what to do.

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