htaccess adding this, how?>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • justsexxx
    Too lazy to set a custom title
    • Aug 2001
    • 13723

    #1

    htaccess adding this, how?>

    Hi,

    I have this now

    Options -Indexes

    ErrorDocument 400 http://www.domain.com
    ErrorDocument 401 http://www.domain.com
    ErrorDocument 403 http://www.domain.com
    ErrorDocument 404 http://www.domain.com
    ErrorDocument 410 http://www.domain.com
    ErrorDocument 500 http://www.domain.com

    RewriteEngine on
    RewriteOptions inherit
    RewriteCond %{HTTP_REFERER} !^http://w*\.*domain.com
    RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com/wrong.html

    I want to add these lines

    RewriteCond %{HTTP_USER_AGENT} ^DISCo\Pump.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Drip.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EirGrabber.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^FlashGet.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GetRight.*

    How will my new htaccess look like?

    Thnx
    Andre
    Questions?

    ICQ: 125184542
  • m0rph3us
    Confirmed User
    • Mar 2001
    • 2033

    #2
    Options -Indexes

    ErrorDocument 400 http://www.domain.com
    ErrorDocument 401 http://www.domain.com
    ErrorDocument 403 http://www.domain.com
    ErrorDocument 404 http://www.domain.com
    ErrorDocument 410 http://www.domain.com
    ErrorDocument 500 http://www.domain.com

    RewriteEngine on
    RewriteOptions inherit
    RewriteCond %{HTTP_REFERER} !^http://w*\.*domain.com
    RewriteCond %{HTTP_USER_AGENT} ^DISCo\Pump.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Drip.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EirGrabber.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^FlashGet.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GetRight.*
    RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com/wrong.html

    Like this... those browsers won't be able to hit your images but still hit your htmls...

    m0rphy



    ------------------
    ADULTBOUNCER AVS!

    * FREE Unlimited Hosting (ANY SIZE VIDEOS ALLOWED!)
    * Free Premium Unique Video Content
    * Partner Programs to resell your AVS site
    * Recurring By-Monthly Payouts
    * Multiple Billers


    GET STARTED NOW!
    <font size="2" face="Tahoma"><a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Get paid $25 per signup</a> listing over <a href="http://galleries.18blowjobs.com/hosted.html" target="_blank">100 free hosted video galleries</a> - <a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Check it</a> ยป </font>

    Comment

    • justsexxx
      Too lazy to set a custom title
      • Aug 2001
      • 13723

      #3
      Thnx a lot, is there a way that theu can't acces html as well?

      Andre
      Questions?

      ICQ: 125184542

      Comment

      • ztik
        Confirmed User
        • Aug 2001
        • 5196

        #4
        RewriteRule .*[Hh][Tt][Mm][Ll]$|.*[Hh][Tt][Mm]$|.*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$
        .

        Comment

        • awechen
          Confirmed User
          • Oct 2001
          • 162

          #5
          tip:

          dont use .htacces if u have access to the httpd.conf

          is will speed up the system



          ------------------
          "Shock your systemadministration! Read manual-pages! &lt;br&gt;
          ah you have been blessed with 72 virgins?"
          ah you have been blessed with 72 virgins?

          Comment

          • justsexxx
            Too lazy to set a custom title
            • Aug 2001
            • 13723

            #6
            Thnx i will ask my host....ANy ideah how to add that last line?

            Thnx
            Andre
            Questions?

            ICQ: 125184542

            Comment

            • awechen
              Confirmed User
              • Oct 2001
              • 162

              #7
              hit me on icq



              ------------------
              "Shock your systemadministration! Read manual-pages! &lt;br&gt;
              ah you have been blessed with 72 virgins?"
              ah you have been blessed with 72 virgins?

              Comment

              Working...