1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

Banning IP's with FrontPage

Discussion in 'BBS Hangout' started by Timing, Sep 16, 2002.

Tags:
  1. Timing

    Timing Member

    Joined:
    Jul 30, 2000
    Messages:
    5,308
    Likes Received:
    1
    Anyone know how to ban IP numbers using FrontPage2000? I have some freak who's bombarding one page on my little site with like 10,000 hits over the last few hours from 9 different computers and I want to take him down before he makes me exceed my bandwidth. My hosting service is clueless on dealing with .htaccess for FP and they won't help. Anyone? Bueller!?.
     
  2. Sonny

    Sonny Member

    Joined:
    Mar 20, 2001
    Messages:
    5,436
    Likes Received:
    8
    If you are running the site with IIS, you can go into the Internet Services Manager, right click the website Properties, then go into the Directory Security tab.


    Click on the edit button by "IP Address and domain name restrictions", you can add in their IP there and restart IIS.
     
  3. Timing

    Timing Member

    Joined:
    Jul 30, 2000
    Messages:
    5,308
    Likes Received:
    1
    I guess FrontPage just blows then. :mad:
     
  4. Sonny

    Sonny Member

    Joined:
    Mar 20, 2001
    Messages:
    5,436
    Likes Received:
    8
    Timing - Frontpage is just the app that you write the webpage in. You need a webserver (like Microsoft's IIS) to run it on. Ask your ISP what webserver they are using to host your site with?
     
  5. bobrek

    bobrek Politics belong in the D & D

    Joined:
    Sep 16, 1999
    Messages:
    36,288
    Likes Received:
    26,647
    Timing

    Try this:

    To deny users access to the site, add the following line to your .htaccess file:

    <Limit GET>

    order allow,deny

    deny from 18.29.1.50

    deny from 194.73.160.

    allow from all

    </Limit>

    You can only deny access based upon IP address or an IP block. The above blocks access to the site from 18.29.1.50, and from any sub domain under the IP block 194.73.160.

    This info comes from here:

    http://www.ispelunker.com/hpages/htatricks.php3

    I have been unable to get it to work on my site, however.
     
  6. Timing

    Timing Member

    Joined:
    Jul 30, 2000
    Messages:
    5,308
    Likes Received:
    1
    The thing is I can't find any .htaccess file. In addition to that, I keep reading that if you play around with that file (the one I can't even find) that it can bring down your site because of other settings that are in that file. I was just going to create a notepad file and name it .htaccess and put the banned IP numbers in there but now I'm paranoid it will screw up my site since I can't find the original one just to copy in case something bad happens. So very frustrating...
     
  7. bobrek

    bobrek Politics belong in the D & D

    Joined:
    Sep 16, 1999
    Messages:
    36,288
    Likes Received:
    26,647
    Are there any files of the type _vti_xyz? If not, then it would appear that your hosting company is not using the FP extensions to host the site. If that is the case, you cannot take advantage of all of the available FP extensions.

    Who is your provider?
     
  8. Timing

    Timing Member

    Joined:
    Jul 30, 2000
    Messages:
    5,308
    Likes Received:
    1
    I have folders _vti_cnf and _vti_pvt. Provider is your-site.com.
     
  9. bobrek

    bobrek Politics belong in the D & D

    Joined:
    Sep 16, 1999
    Messages:
    36,288
    Likes Received:
    26,647
    Are you sure you are in your 'root' directory when looking for .htaccess? For example, if I directly connect to my hosting company I then have to change directory to 'www' to get to my root directory. That is where I find .htaccess.

    Try going to the members area of your-site.com and search for .htaccess to see if anyone else has problems.

    If I do a "deny all", then I can't get to my web site. I think my problem with "deny IP address" has to do with how stuff goes out from my company.
     
  10. Timing

    Timing Member

    Joined:
    Jul 30, 2000
    Messages:
    5,308
    Likes Received:
    1
    I have everything in My Webs folder, then I have the vti folders in that along with a folder with the title of the website that contains the pages and images. I've done a search of my whole computer for .htaccess and nothing comes up.
     
  11. bobrek

    bobrek Politics belong in the D & D

    Joined:
    Sep 16, 1999
    Messages:
    36,288
    Likes Received:
    26,647
    Timing

    The .htaccess file to modify would be on your-site.com's hosting computer NOT on your personal computer. The same with the _vti files. If those don't exist on your-site.com then they do not have the FP extensions installed for your particular domain.

    Since they claim to support the FP 2000 extensions, they should be able to help you with this. Knowing how some support organizations are, your best bet may be to look into their user forum area.
     
  12. Timing

    Timing Member

    Joined:
    Jul 30, 2000
    Messages:
    5,308
    Likes Received:
    1
    Hmm... how would I even access that then, I've never seen any kind of control panel to see my data on their server.
     
  13. Sonny

    Sonny Member

    Joined:
    Mar 20, 2001
    Messages:
    5,436
    Likes Received:
    8
    you should have some sort of directory that you FTP your files into on their server, where all your webpages are stored.
     
  14. Dr of Dunk

    Dr of Dunk Clutch Crew

    Joined:
    Aug 27, 1999
    Messages:
    46,666
    Likes Received:
    33,710
    FTP to the directory and open the file in something like notepad and edit it that way.

    By the way, if you're trying to block a specific person, it may be a bit tricky. Especially if they have a dynamic IP. Also, there are ways I can get around your blocking using something as simple as a [censored]. :)
     
  15. movement

    movement Member

    Joined:
    Aug 9, 2001
    Messages:
    212
    Likes Received:
    0
    Do not use FTP when you are using Frontpage. I've work with a couple of unix boxes, and each time a user uses FTP and Frontpage, it can and probably will break the FrontPage extensions, then the support team will have to rebuild your FrontPage extensions. This is because FrontPage files have the ownership of nobody:nobody. When you upload a file through FTP, the ownership will be myusername:users. You can upload files without breaking FrontPage extensions through web folders.

    Here is an example of my .htaccess file (without the pound signs):

    AuthUserFile path/to/my/.htpasswd
    AuthName "Neworder File Server"
    AuthType Basic

    <#Limit GET PUT POST#>
    require valid-user
    order allow,deny
    allow from all
    deny from XXX.XXX.XXX.XXX
    <#/Limit#>

    You can block whole subnets by setting your .htaccess file to be:
    deny from 129.7
    and not filling out the last two octets of the IP address. htaccess is pretty cool, you can configure it where other websites can not hot-link your images as well.

    edit: this is all dependent on the server's setting for .htaccess, if they allow all of the functions of .htaccess or just certain ones.
     
    #15 movement, Sep 16, 2002
    Last edited: Sep 16, 2002
  16. Dr of Dunk

    Dr of Dunk Clutch Crew

    Joined:
    Aug 27, 1999
    Messages:
    46,666
    Likes Received:
    33,710
    movement,

    How do you edit .htaccess files?
     

Share This Page