htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emmanuelle
    Confirmed User
    • Mar 2003
    • 3662

    #1

    htaccess help

    One of my paysites is getting hammered by password lists. While I am redirecting my 401 & 403 traffic, I would like to keep them off the site entirely since they are sucking up all the free trailers in the free area.
    Can somebody please advise me how to redirect this traffic by referral?
  • Sexzity
    Confirmed User
    • Jun 2002
    • 1329

    #2
    Very usefull tool:
    http://www.clockwatchers.com/htaccess_tool.html


    Another great tool, to search for domains:
    http://sexzity.net/domains/
    It is new and free for adult webmasters - try it!

    Comment

    • swedguy
      Confirmed User
      • Jan 2002
      • 7981

      #3
      RewriteEngine On
      RewriteCond %{HTTP_REFERER} ^http://hotlinker1.com/* [NC,OR]
      RewriteCond %{HTTP_REFERER} ^http://hotlinker2.com/* [NC]
      RewriteRule /* http://www.popuphell.com [R,L]

      Something like that. You should not have an OR on the last RewriteCond, I've done that mistake couple of times

      Comment

      • mephisto
        Registered User
        • Oct 2002
        • 60

        #4
        nicer way to do it than referer based. add code that drops a user cookie say something like encrypted timestamp and then check for it when serving the mpg by putting the mpg link through a cgi script.
        also make sure your content is only servable by the script and is in a directory that is unreachable to the webserver.
        or you can put in something like the paypal security system (pls retype numbers that you see sort of thing)
        Seek freedom and become captive of your desires. Seek discipline and find your liberty.

        AB-Arun

        Comment

        • mephisto
          Registered User
          • Oct 2002
          • 60

          #5
          also this

          RewriteEngine on
          RewriteMap hosts-deny txt:/etc/hosts.deny
          RewriteCond ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR]
          RewriteCond ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND
          RewriteRule ^/.* - [F]

          THe /etc/hosts.deny is a suggestion, you may use whatever you choose.
          Seek freedom and become captive of your desires. Seek discipline and find your liberty.

          AB-Arun

          Comment

          • swedguy
            Confirmed User
            • Jan 2002
            • 7981

            #6
            A very wise man taught me something many many moons ago.

            KISS - Keep It Simple Stupid

            Comment

            • mephisto
              Registered User
              • Oct 2002
              • 60

              #7
              trying to help him out. as for simplicity, sometimes too much simplicity can hurt you.
              Seek freedom and become captive of your desires. Seek discipline and find your liberty.

              AB-Arun

              Comment

              • emmanuelle
                Confirmed User
                • Mar 2003
                • 3662

                #8
                Now by putting the htaccess in my free area, am I going to bring the site to a crawl?

                I appreciate everyone's help here!

                Comment

                • swedguy
                  Confirmed User
                  • Jan 2002
                  • 7981

                  #9
                  Originally posted by mephisto
                  trying to help him out. as for simplicity, sometimes too much simplicity can hurt you.
                  Don't get offended. Take it as a joke

                  Comment

                  • swedguy
                    Confirmed User
                    • Jan 2002
                    • 7981

                    #10
                    Originally posted by emmanuelle
                    Now by putting the htaccess in my free area, am I going to bring the site to a crawl?

                    I appreciate everyone's help here!
                    You should be all good. Unless yu have a list with 500 hotlinkers and lots of traffic. Then it's probably time to figure out another solution.

                    Comment

                    • mephisto
                      Registered User
                      • Oct 2002
                      • 60

                      #11
                      Originally posted by swedguy
                      Don't get offended. Take it as a joke
                      just fucking around..... heehee
                      Seek freedom and become captive of your desires. Seek discipline and find your liberty.

                      AB-Arun

                      Comment

                      Working...