htaccess ... ???? Need help, PLZ!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lexxx2
    Confirmed User
    • Apr 2001
    • 148

    #1

    htaccess ... ???? Need help, PLZ!

    I need HTACCESS file to protect my galleries from HotLink and redirect Bookmakers and traffic with (Russian, china... IP)
    This code protect from Hotlink...


    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    RewriteEngine On
    RewriteOptions inherit
    RewriteCond %{HTTP_REFERER} !^http://.*mydomain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx/.*$ [NC]
    RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.redirect address [R,L]

    Please help me write full code, to do all i need, or give me an example of Working File..


    P.S. Can i be banned if i`ll redirect traffic with China, russian... IP from my galleries, to my freesite???

    Thanx..



    [This message has been edited by lex (edited 10-18-2001).]
  • Free Recip Host
    Registered User
    • Oct 2001
    • 27

    #2
    AuthUserFile /dev/null

    AuthGroupFile /dev/null

    RewriteEngine On

    RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com
    RewriteCond %{HTTP_REFERER} !^http://yoursite.com
    RewriteCond %{HTTP_REFERER} !^http://yourIp

    RewriteRule /* http://www.wheretoredirectunauthorizedtraffic.com [R,L]


    That works for me, and yeah my guess is that you can get banned for that.

    ------------------
    <A HREF="http://www.free-recip-host.com" TARGET=_blank>Free Recip Host
    </A>Get your recips hosted for free and cut your work in half!
    [URL=http://ctc.amateurpages.com/cgi-bin/ctc/signup.cgi?76399352
    [/URL]

    Comment

    Working...