htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PeekHoles
    Registered User
    • Jan 2002
    • 1151

    #1

    htaccess help

    Can someone point me in the right direction on how to do this? I need the htaccess code to do this... say I have 3 sites A, B , C In order to get to site C you have to either come from site A, or site B. I don't wont some to be able to type site C in directly and be able to get there. I have searched the board I know I have seen the code posted some were. If anyone can point me in the right direction I would be thankfull. I thought it was a deny all type of code and then in the code it said ... deny from all
    allow from domain or ip est...
  • JohnnyUtah
    Confirmed User
    • Oct 2002
    • 826

    #2
    I think your looking for something like this.
    This would allow traffic commin in from a certain IP number to access your members area.

    <Limit GET>
    require valid-user
    order deny,allow
    deny from all
    allow from 195.Your.ip.number
    Satisfy Any
    </Limit>

    Comment

    • PeekHoles
      Registered User
      • Jan 2002
      • 1151

      #3
      Yeah I thought it was something like that but when I use that code I get a server 500 error. Does it need to be chmoded a certain property.

      Comment

      • Gman.357
        Confirmed User
        • Oct 2002
        • 2796

        #4
        Actually, you need something like this. Allow/Deny won't work for what you want:

        AuthUserFile /dev/null
        AuthGroupFile /dev/null

        RewriteEngine On

        RewriteCond %{HTTP_REFERER} !^http://www.site-a.com/.* [NC]
        RewriteCond %{HTTP_REFERER} !^http://www.site-b.com/.* [NC]
        RewriteCond %{HTTP_REFERER} !^http://www.site-c.com/.* [NC]


        RewriteRule /* http://www.yoursite.com/error.html [R,L]
        Last edited by Gman.357; 11-26-2002, 07:53 AM.

        Ouch.

        Comment

        • ControlThy
          Confirmed User
          • May 2002
          • 1909

          #5
          Gman.357 is correct.
          You do need the Apache "mod_rewrite" module installed and activated. (more information at apache.org).






          BigCash.com: Your Gateway to Serious Bucks!
          Promote our unique Voyeur and Fetish sites!

          Comment

          • PeekHoles
            Registered User
            • Jan 2002
            • 1151

            #6
            Thanks everyone I got it working except it's will not pull up my pics on any of the pages. I'm at apache's site now also.
            Last edited by PeekHoles; 11-26-2002, 08:27 AM.

            Comment

            • PeekHoles
              Registered User
              • Jan 2002
              • 1151

              #7
              Anyone know how I can get the pics to come up?

              Comment

              • Darren
                Confirmed User
                • Sep 2001
                • 5994

                #8
                bump


                Penis enlargement / male enhancement pills - earn up to $229.48 per signup

                ICQ: 46335817

                Comment

                Working...