Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    146
    Plugin Contributions
    0

    Default Using .htaccess to block visitors

    Htaccess Block Users Code Generator

    You can use htaccess to block certain ip addresses from accessing your site. This might be one particular person who's giving you grief, or an ip range from a certain country you'd prefer not to access your site. You can use a full ip address, or only a partial ip. If you put in '203.156.187.225' this will block only users with that exact ip address. Keep in mind that users who run through a proxy server will have a different ip number each time they connect, so you might want to use, for example, '203.156.187'. This will block all users with the ip address of 203.156.187.000 - 203.156.187.255.

    **Remember - this might 'lock out' legitimate visitors to your site, so use the ip block cautiously.

    Enter the ip address or partial ip address you'd like to block from your site. You can also use domain names, ie aol.com will block all users from aol. Hit generate. Copy the generated code and paste it into notepad and save it as htaccess.txt. Upload it in ASCII format to the main folder of your website, or the folder you'd like to block access to. Rename it to .htaccess (remember the dot!!) Unless you have your ftp program set to show invisible files, the file will then disappear from sight. Don't worry, it's still there! If you have an existing htaccess file, copy and paste the generated code into that. Hit enter after the last line of code, or it may produce an error

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Using .htaccess to block visitors

    Format to use in this htaccess file is at
    http://www.zen-cart.com/forum/showthread.php?t=47486

 

 

Similar Threads

  1. How do I block IP addresses in htaccess?
    By RMsimp in forum General Questions
    Replies: 1
    Last Post: 6 Aug 2011, 12:06 PM
  2. htaccess to block exploit attempts
    By Ensonix in forum General Questions
    Replies: 3
    Last Post: 4 Jan 2007, 10:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg