• Is there anyway I can modify the .htaccess file to only allow access to my blog who are from my network. In other words I want to try if they are coming from a network IP. If they are not, then they need to be directed to a “This site has specific access” page.

    Is it possible to do with a .htaccess file?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes . You can do that. Rewriteconditional rewriterule [R=404] OR 403 OR 301

    Thread Starter Icethrill

    (@icethrill)

    Any help or information how I can do it? An reference?

    Found this code, googling.

    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    AuthName "Example Access Control"
    AuthType Basic
    <LIMIT GET>
    order deny,allow
    deny from all
    allow from xx.xx.xx.xx
    </LIMIT>

    Is there a good way to modify this to suit my needs? What this code does is anyone who isnt from xx.xx.xx.xx is denied access to wp-admin folder. But I want that for the whole site.

    {HTTP_}

    Yes is good but u can by rewrite conditinal and redirec if do you want to ban the ip from other netw

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘.htaccess question, redirect anyone who is NOT coming from my network’ is closed to new replies.