need some htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lil2rich4u2
    ICQ: 175171926
    • Oct 2002
    • 11046

    #1

    need some htaccess help

    i have a page that i would like to protect sortof.

    id like only surfers comming from a specific referrer to be allowed access.

    anyone know how to do this?

    :/

    ok thanks.
    HEY!!

    Unbeatable hosting! Customer service is top notch!

    --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
  • detoxed
    vip member
    • Jan 2003
    • 17798

    #2
    google is the best way to get an answer to your question

    Comment

    • lil2rich4u2
      ICQ: 175171926
      • Oct 2002
      • 11046

      #3
      Originally posted by detoxed
      google is the best way to get an answer to your question
      postcount++

      HEY!!

      Unbeatable hosting! Customer service is top notch!

      --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!

      Comment

      • detoxed
        vip member
        • Jan 2003
        • 17798

        #4
        Originally posted by lil2rich4u2


        postcount++

        google referrals--

        Comment

        • lil2rich4u2
          ICQ: 175171926
          • Oct 2002
          • 11046

          #5
          Originally posted by detoxed


          google referrals--
          HEY!!

          Unbeatable hosting! Customer service is top notch!

          --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!

          Comment

          • Oracle Porn
            Affiliate
            • Oct 2002
            • 24433

            #6
            google it nigga!


            Comment

            • sumphatpimp
              Confirmed User
              • Aug 2002
              • 5235

              #7
              try this



              RewriteEngine On
              RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [NC]
              RewriteCond %{HTTP_REFERER} !.*avs1.com.* [NC]
              RewriteCond %{HTTP_REFERER} !.*avs2.com.* [NC]
              RewriteCond %{HTTP_REFERER} !.*avs3.com.* [NC]
              RewriteRule /* http://popup-hell.com/ [R,L]

              RewriteEngine on
              RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [NC]
              RewriteCond %{HTTP_REFERER} !.*google.com.* [NC]
              RewriteCond %{HTTP_REFERER} !.*picpost.com.* [NC]
              RewriteCond %{HTTP_REFERER} !.*advert.com.* [NC]
              RewriteRule .*\.[gif|jpg|jpeg|bmp] - [NC,F]
              ErrorDocument 401 http://anydomain.com/anypage.html
              ErrorDocument 403 http://anydomain.com/anypage.html
              ErrorDocument 404 http://anydomain.com/anypage.html
              ErrorDocument 500 http://anydomain.com/anypage.html


              one of these should work, depends on what you what to do,

              Comment

              • Anothers
                Confirmed User
                • Nov 2001
                • 219

                #8
                try this

                RewriteEngine on
                RewriteCond %{REQUEST_URI} page_you_want_to_protect.htm [NC]
                RewriteCond %{HTTP_REFERER} !.*domain_of_lil2rich4u2_choice.com.* [NC]
                RewriteRule .* - [F]


                Edit: this "page_you_want_to_protect.htm" you should tweak a little (subdirectory like /my_super_dir/page... etc.)
                Last edited by Anothers; 10-06-2003, 07:36 PM.

                Comment

                • lil2rich4u2
                  ICQ: 175171926
                  • Oct 2002
                  • 11046

                  #9
                  Originally posted by Anothers
                  try this

                  RewriteEngine on
                  RewriteCond %{REQUEST_URI} page_you_want_to_protect.htm [NC]
                  RewriteCond %{HTTP_REFERER} !.*domain_of_lil2rich4u2_choice.com.* [NC]
                  RewriteRule .* - [F]


                  Edit: this "page_you_want_to_protect.htm" you should tweak a little (subdirectory like /my_super_dir/page... etc.)
                  this looks like it does what i need, thanks i will try it
                  HEY!!

                  Unbeatable hosting! Customer service is top notch!

                  --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!

                  Comment

                  Working...