adorablepixels07 Posted November 8, 2007 Posted November 8, 2007 i had had to ban a bunch of ips from accessing my site so if there ip is banned why are they still able to access it? Quote
TCH-Bruce Posted November 8, 2007 Posted November 8, 2007 How did you ban the addresses? Did you add them to your .htaccess file? If so, they should not be able to access the site. Quote
adorablepixels07 Posted November 8, 2007 Author Posted November 8, 2007 how do i do that cause all ive been doing is going to the ip banning things in my cpanel Quote
TCH-Thomas Posted November 8, 2007 Posted November 8, 2007 Do the people you do not want to have access have a static or dynamic ip address. If dynamic, their ip will change quite often. Quote
TCH-Bruce Posted November 8, 2007 Posted November 8, 2007 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. Quote
adorablepixels07 Posted November 8, 2007 Author Posted November 8, 2007 well how do i just prevent the ones i have blocked for now something said about the hta access thing whats that? Quote
TCH-Bruce Posted November 8, 2007 Posted November 8, 2007 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? Quote
TCH-Thomas Posted November 8, 2007 Posted November 8, 2007 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 Quote
adorablepixels07 Posted November 8, 2007 Author Posted November 8, 2007 okie im in that file folder and i dont see the hta access folder ur dicribing? Quote
TCH-Bruce Posted November 8, 2007 Posted November 8, 2007 It's not a folder and it's called .htaccess You have to have the file manager set to display hidden files. A dot preceding a file name makes it hidden. Quote
adorablepixels07 Posted November 8, 2007 Author Posted November 8, 2007 ok i see it now, now what? Quote
TCH-Bruce Posted November 8, 2007 Posted November 8, 2007 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.