Help with htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shoplifter
    Richest man in Babylon
    • Jan 2002
    • 5848

    #1

    Help with htaccess

    I want to allow access from only certain domains. Now I know that this will block domains:


    RewriteEngine on
    RewriteCond %{HTTP_REFERER} abc.com* [OR]
    RewriteCond %{HTTP_REFERER} def.com
    RewriteRule /* http://www.yousite.com


    But how can I hange this to allow only from these two domains and block all others?

    Thanks!
    I Like Blondes
  • JDog
    Confirmed User
    • Feb 2003
    • 7453

    #2
    Referer is actually the worst way to go, because different broswers carry the referers differently, if they carry it over at all! I've learned once, and will never use a referring url again to authinicate.

    jDoG
    NSCash now powering ReelProfits.com
    ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
    PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
    NOW OFFERING OVER 60 SITES
    CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

    Comment

    Working...