Results 1 to 4 of 4
  1. #1

    .htaccess questions about deny and redirect


    I am setting up a new site and want to only allow me to see the site, so I am using the below code in my .htaccess file.

    Could someone tell me how to redirect all Deny IP's to another website ?

    Order Deny,Allow
    Allow from MY_IP_HERE
    Deny from all

  2. #2
    I added the below to do the redirect

    Errordocument 403

  3. #3

    Try with this

    order deny,allow
    deny from all
    allow from ur ip

    <<Signatures to be set up in your profile>>
    Last edited by bear; 11-07-2009 at 08:15 AM.

  4. #4
    Join Date
    Sep 2009
    You could also try setting up an htpasswd for the directory with the site, so you can login from anywhere...
    Top Web Hosting Providers ::
    How much is my site worth? ::

Similar Threads

  1. .htaccess Redirect
    By tomyknoker in forum Hosting Security and Technology
    Replies: 4
    Last Post: 04-28-2008, 09:25 AM
  2. .htaccess-- deny froms
    By QiSoftware in forum Hosting Security and Technology
    Replies: 2
    Last Post: 04-02-2007, 07:29 PM
  3. Deny regular http: , allow https only with htaccess?
    By jjaviervi in forum Hosting Security and Technology
    Replies: 1
    Last Post: 07-26-2006, 12:21 PM
  4. deny from htaccess not working?
    By ElricM in forum Dedicated Server
    Replies: 4
    Last Post: 05-29-2005, 11:16 PM
  5. Deny List - .htaccess
    By option in forum Running a Web Hosting Business
    Replies: 2
    Last Post: 07-08-2002, 01:41 AM

Posting Permissions

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