Post your .htaccess file thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Doctor Feelgood
    Confirmed User
    • Nov 2005
    • 2112

    #1

    Post your .htaccess file thread

    would love to compare everybodys .htaccess files and get some feedback wether good or bad. ill start, just replace your site with example.

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    ErrorDocument 404 http://example.com/
    # stops www
    RewriteEngine on
    rewritecond %{HTTP_HOST} ^www.example\.com 
    RewriteRule ^(.*) http://example.com/$1 [L,R=301]
    # redirects index.php to main url
    RewriteEngine on
    RewriteCond %{THE_REQUEST} ^.*/index.php
    RewriteRule ^(.*)index.php$ http://example.com/$1 [R=301,L]
    # Set the default handler
    DirectoryIndex index.php
    # stops hotlinking from everywhere
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !example\.com [NC]
    RewriteCond %{HTTP_REFERER} !yahoo\. [NC] 
    RewriteCond %{HTTP_REFERER} !google\. [NC]
    RewriteCond %{HTTP_REFERER} !bing\. [NC] 
    RewriteCond %{HTTP_REFERER} !bingj\. [NC] 
    RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
    RewriteCond %{REQUEST_URI} !/stop/stop.png
    RewriteRule \.(jpeg|jpg|gif|png)$ http://example.com/stop/stop.png [NC,R,L]
    # Manually enables SSI on your server
    AddHandler server-parsed .htm
  • fatfoo
    ICQ:649699063
    • Mar 2003
    • 27763

    #2
    That's a big ass .htaccess file. Mine had like only 2 or 3 lines that my host told me to write so that my traffic script works fine.
    Send me an email: [email protected]

    Comment

    • Adraco
      Confirmed User
      • May 2009
      • 3745

      #3
      Anyone having pictures or movies that you don't want to share with Chinese bandwidth thieves should have a file stopping hotlinking.
      ----------------------------------------------------------------------------------
      The truth is not affected by the beliefs, or doubts, of the majority.

      Comment

      • Doug E
        Confirmed User
        • Sep 2005
        • 511

        #4
        Anyone having pictures or movies that you don't want to share with Chinese bandwidth thieves should have a file stopping hotlinking.
        Wooord. I wasn't paying attention and lost a few hundred gigs on a virtual server last week. Some of those Chinese forums have mad traffic.

        Outside of bing/google/yahoo what are other legit places that are worth allowing hotlinking from?

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          Code:
          Options +FollowSymLinks 
          RewriteEngine On 
          RewriteCond %{SCRIPT_FILENAME} !-f 
          RewriteCond %{REQUEST_URI} ^(/.+\.)html$ [NC] 
          RewriteCond %{DOCUMENT_ROOT}%1php -f 
          RewriteRule \.html$ %1php [NC,QSA,L]
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          • Yngwie
            I am an Alien from space
            • May 2003
            • 11118

            #6
            Code:
            #HTACCESS MOBILE SITE REDIRECTION CODE
            RewriteEngine On
            RewriteCond %{HTTP_USER_AGENT} (mobile|blackberry|j2me|symbian|windows.ce) [NC]
            RewriteRule ^(.*)$ http://mobile.slutty8teen.com [R=302,L]
            ICQ: 16544251 - Skype: gator37 @ eastlink.ca - email: yngwie @ isys.ca

            Comment

            • CYF
              Coupon Guru
              • Mar 2009
              • 10973

              #7
              RewriteEngine on
              RewriteCond %{HTTP_REFERER} !^$
              RewriteCond %{HTTP_REFERER} !^http://images.google.com [NC]
              RewriteCond %{HTTP_REFERER} !^http://(www\.)?teenselfshooter\.com [NC]
              RewriteRule \.(gif|jpg)$ http://www.teenselfshooter.com/visit.jpg [L]
              Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
              AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

              Comment

              • GrouchyAdmin
                Now choke yourself!
                • Apr 2006
                • 12085

                #8
                Code:
                <IfModule mod_rewrite.c>
                	RewriteEngine On
                        RewriteRule ^captcha.gif$ /captcha/index.php?mode=GIF [L]
                        RewriteRule ^captcha.jpg$ /captcha/index.php?mode=JPG [L]
                        RewriteRule ^country.gif$ /geoip/index.php?mode=GIF [L]
                        RewriteRule ^fortune.gif$ /fortune/index.php?mode=GIF [L]
                        RewriteRule ^wherefrom.jpg$ /whowhere/index.php?mode=JPG [L]
                	RewriteRule ^gfyrss$ /gfyrss/index.php [L]
                	RewriteRule ^gfyrss.xml$ /gfyrss/index.php [L]
                        RewriteRule ^channel([0-9]+)\.gif /xmsig/index.php?mode=GIF&channel=$1 [L]
                	RewriteCond %{REQUEST_FILENAME} -f [OR]
                	RewriteCond %{REQUEST_FILENAME} -d
                	RewriteRule ^(.+) - [PT,L]
                	RewriteRule ^(.*) index.php
                        RewriteCond %{REQUEST_URI} !=/favicon.ico
                        RewriteRule ^(.*) index.php
                        RewriteCond %{HTTP:Authorization}  !^$
                        RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
                </IfModule>
                What? I try to keep shit fairly clean, but I have some legacy crap.

                Comment

                • ~Ray
                  visit hardlinks.org
                  • Jun 2003
                  • 18361

                  #9
                  ErrorDocument 401 /
                  ErrorDocument 404 /
                  ErrorDocument 403 /
                  ErrorDocument 405 /
                  ErrorDocument 500 /


                  Adult Backlinks for Adult Websites - Testimonials Available

                  Comment

                  • Iron Fist
                    Too lazy to set a custom title
                    • Dec 2006
                    • 23400

                    #10
                    This thread is probably one of the best threads I've seen in awhile.... nicely done
                    i like waffles

                    Comment

                    • Denny
                      Too lazy to set a custom title
                      • Feb 2005
                      • 17393

                      #11
                      interesting thread

                      Comment

                      • CYF
                        Coupon Guru
                        • Mar 2009
                        • 10973

                        #12
                        Originally posted by CYF
                        RewriteEngine on
                        RewriteCond %{HTTP_REFERER} !^$
                        RewriteCond %{HTTP_REFERER} !^http://images.google.com [NC]
                        RewriteCond %{HTTP_REFERER} !^http://(www\.)?teenselfshooter\.com [NC]
                        RewriteRule \.(gif|jpg)$ http://www.teenselfshooter.com/visit.jpg [L]
                        To explain my post, this basically stops hotlinking on a blog, anyone trying to hotlink an image will get visit.jpg instead of what they were trying to link to
                        Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
                        AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

                        Comment

                        • fris
                          Too lazy to set a custom title
                          • Aug 2002
                          • 55679

                          #13
                          Originally posted by fris
                          Code:
                          Options +FollowSymLinks 
                          RewriteEngine On 
                          RewriteCond %{SCRIPT_FILENAME} !-f 
                          RewriteCond %{REQUEST_URI} ^(/.+\.)html$ [NC] 
                          RewriteCond %{DOCUMENT_ROOT}%1php -f 
                          RewriteRule \.html$ %1php [NC,QSA,L]
                          to explain this.

                          will rewrite .php files as .html files

                          example http://www.domain.com/galleries/01/index.php will work as

                          http://www.domain.com/galleries/01/index.html

                          it checks if a real .html file exists with the same name first, then rewrites.

                          I use this with arylia since a lot of tgp/mgps dont allow .php file extensions.
                          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                          Comment

                          • alias
                            aliasx
                            • Apr 2001
                            • 19010

                            #14
                            Code:
                            # BEGIN WordPress
                            <IfModule mod_rewrite.c>
                            RewriteEngine On
                            RewriteBase /
                            RewriteCond %{REQUEST_FILENAME} !-f
                            RewriteCond %{REQUEST_FILENAME} !-d
                            RewriteRule . /index.php [L]
                            
                            #Iphone detection
                            RewriteCond %{HTTP_USER_AGENT} ^.*iphone.*$ [NC]
                            RewriteRule ^(.*)$ http://supplehandjobs.com [R=301,L]
                            
                            #Ipod detection
                            RewriteCond %{HTTP_USER_AGENT} ^.*ipod.*$ [NC]
                            RewriteRule ^(.*)$ http://supplehandjobs.com [R=301,L]
                            </IfModule>
                            # END WordPress
                            No full redirect for wp mu that doesn't break the install yet.
                            https://porncorporation.com

                            Comment

                            • seeandsee
                              Check SIG!
                              • Mar 2006
                              • 50945

                              #15
                              Originally posted by fris
                              to explain this.

                              will rewrite .php files as .html files

                              example http://www.domain.com/galleries/01/index.php will work as

                              http://www.domain.com/galleries/01/index.html

                              it checks if a real .html file exists with the same name first, then rewrites.

                              I use this with arylia since a lot of tgp/mgps dont allow .php file extensions.
                              Nice tip Fris!
                              BUY MY SIG - 50$/Year

                              Contact here

                              Comment

                              • TheDoc
                                Too lazy to set a custom title
                                • Jul 2001
                                • 13827

                                #16
                                All of mine are like this for WP sites... no WP, the only difference is error codes.

                                Code:
                                AddType application/x-httpd-php .html
                                
                                Options +FollowSymLinks
                                RewriteEngine on
                                RewriteCond %{HTTP_HOST} ^domain\.com
                                RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
                                
                                redirect 301 about 20 of these...
                                
                                # BEGIN WPSuperCache
                                <IfModule mod_rewrite.c>
                                RewriteEngine On
                                RewriteBase /
                                AddDefaultCharset UTF-8
                                RewriteCond %{REQUEST_METHOD} !=POST
                                RewriteCond %{QUERY_STRING} !.*=.*
                                RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
                                RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
                                RewriteCond %{HTTP:Accept-Encoding} gzip
                                RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
                                RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
                                
                                RewriteCond %{REQUEST_METHOD} !=POST
                                RewriteCond %{QUERY_STRING} !.*=.*
                                RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
                                RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
                                RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
                                RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
                                </IfModule>
                                # END WPSuperCache
                                
                                # BEGIN WordPress
                                <IfModule mod_rewrite.c>
                                RewriteEngine On
                                RewriteBase /
                                RewriteCond %{REQUEST_FILENAME} !-f
                                RewriteCond %{REQUEST_FILENAME} !-d
                                RewriteRule . /index.php [L]
                                </IfModule>
                                # END WordPress
                                ~TheDoc - ICQ7765825
                                It's all disambiguation

                                Comment

                                • raymor
                                  Confirmed User
                                  • Oct 2002
                                  • 3745

                                  #17
                                  Wow every single .htaccess posted has at least one error in it.
                                  For historical display only. This information is not current:
                                  support&#64;bettercgi.com ICQ 7208627
                                  Strongbox - The next generation in site security
                                  Throttlebox - The next generation in bandwidth control
                                  Clonebox - Backup and disaster recovery on steroids

                                  Comment

                                  • Doctor Feelgood
                                    Confirmed User
                                    • Nov 2005
                                    • 2112

                                    #18
                                    Originally posted by raymor
                                    Wow every single .htaccess posted has at least one error in it.
                                    well? what is it dickwad?

                                    Comment

                                    • CYF
                                      Coupon Guru
                                      • Mar 2009
                                      • 10973

                                      #19
                                      Originally posted by raymor
                                      Wow every single .htaccess posted has at least one error in it.
                                      please point out my error, kthnx
                                      Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
                                      AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

                                      Comment

                                      • Doctor Feelgood
                                        Confirmed User
                                        • Nov 2005
                                        • 2112

                                        #20
                                        Originally posted by CYF
                                        please point out my error, kthnx
                                        whats this please and thanx shit? fuck that

                                        Comment

                                        • TheDoc
                                          Too lazy to set a custom title
                                          • Jul 2001
                                          • 13827

                                          #21
                                          Originally posted by raymor
                                          Wow every single .htaccess posted has at least one error in it.
                                          Is this the same as finding errors in the StrongBox .htaccess files due to different system setups? Then yeah, you got us!
                                          ~TheDoc - ICQ7765825
                                          It's all disambiguation

                                          Comment

                                          • RyuLion
                                            • Mar 2003
                                            • 32369

                                            #22
                                            RewriteEngine On
                                            RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:[email protected] [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
                                            RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
                                            RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
                                            RewriteCond %{HTTP_USER_AGENT} ^Zeus
                                            RewriteRule ^.* - [F,L]

                                            Adult Biz Consultant A tech head since 1995
                                            Affiliate Support: Chaturbate | CCBill Live

                                            Comment

                                            • Dirty Dane
                                              Sick Fuck
                                              • Feb 2004
                                              • 9491

                                              #23
                                              Code:
                                              RewriteEngine on
                                              Redirect permanent /chinese-porn http://images.google.com/images?hl=en&source=hp&q=chinese%20porn
                                              RewriteCond %{HTTP_REFERER} !^$
                                              RewriteCond %{HTTP_REFERER} !^http://images.google.com/.*$      [NC]
                                              deny from google.com

                                              Comment

                                              • redwhiteandblue
                                                Bollocks
                                                • Jun 2007
                                                • 2793

                                                #24
                                                Originally posted by CYF
                                                please point out my error, kthnx
                                                You're blocking all Google image tlds other than .com. Might not bother you but that could be a fair amount of traffic.
                                                Interserver unmanaged AMD Ryzen servers from $73.00

                                                Comment

                                                • redwhiteandblue
                                                  Bollocks
                                                  • Jun 2007
                                                  • 2793

                                                  #25
                                                  Code:
                                                  Options -Indexes
                                                  Options +FollowSymlinks
                                                  
                                                  ErrorDocument 404 /error.html
                                                  
                                                  RewriteEngine on
                                                  
                                                  ## Check For Mozilla/MSIE And Allow It Before Checking All
                                                  RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[0-9]\.[0-9].*Gecko [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[0-9]\.[0-9]\ \(compatible\;\ MSIE
                                                  RewriteRule ^(.*) - [S=1]
                                                  
                                                  RewriteCond %{HTTP_USER_AGENT} ^Ants [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^attach [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Backweb [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Bandit [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:[email protected] [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Buddy [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^CherryPicker [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Collector [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Copier [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Crawler [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Crescent [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Custo [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^DA.4.0 [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^DA.5.0 [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^DA.5.3 [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^DIIbot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^DISCo [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Downloader [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Drip [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^eCatch [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^EmailCollector [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} FileHound [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^FlashGet [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} GetLeft [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^GetRight [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^GornKer [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} gotit [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Grabber [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^GrabNet [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Grafula [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^HMView [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ia_archiver [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} IBrowse [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^InterGET [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Irvine [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^JetCar [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} JustView [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^larbin [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} lftp [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} likse [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Lickity [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} LinkWalker [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Link.Sleuth [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Magnet [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Mag-Net [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Microsoft.URL [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Navroad [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^NearSite [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^NetAnts [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^NetSpider [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^NetZIP [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Octopus [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^omniexplorer_bot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^pavuk [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} PicaLoader [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} PictureRipper [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} PicHunter [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Pockey [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} psbot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Pump [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} dloader(NaverRobot) [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^puf [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^RealDownload [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Reaper [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Recorder [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^ReGet [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^SearchExpress [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} sitecheck.internetseer.com [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Snagger [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Snake [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} SpaceBison [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Stripper [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Sucker [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^SuperBot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Surfbot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Siphon [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^swish-e [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebAuto [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebBandit [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebCopier [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Web.Downloader [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} WebEMailExtrac [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebFetch [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebReaper [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} WebRipper [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebSauger [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebStripper [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WebZIP [NC,OR]
                                                  ##RewriteCond %{HTTP_USER_AGENT} ^Wget [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Widow [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Zeus [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^ZyBorg [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Java [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Jakarta [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} IDBot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} id-search [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} panscient [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ConveraCrawler [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} PleaseCrawl [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Gigabot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Yanga\ WorldSearch\ Bot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Download\ Master [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} WebAlta\ Crawler [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^betaBot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Tagoobot [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} Twiceler [NC,OR]
                                                  RewriteCond %{HTTP_USER_AGENT} ^Baiduspider [NC]
                                                  RewriteRule ^.* - [F,L]
                                                  
                                                  RewriteCond %{HTTP_HOST} !^www\.
                                                  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
                                                  
                                                  RewriteCond %{REQUEST_FILENAME} !-f
                                                  RewriteCond %{REQUEST_FILENAME} !-d
                                                  RewriteRule ^(.*) index.php?u=$1
                                                  
                                                  php_flag register_globals off
                                                  php_value session.use_trans_sid 0
                                                  php_value session.use_only_cookies 1
                                                  I don't have anti hotlinking because I hotlink my own image files over several IPs and I couldn't be arsed to work out the rule for that but I probably should.
                                                  Interserver unmanaged AMD Ryzen servers from $73.00

                                                  Comment

                                                  • CYF
                                                    Coupon Guru
                                                    • Mar 2009
                                                    • 10973

                                                    #26
                                                    Originally posted by redwhiteandblue
                                                    You're blocking all Google image tlds other than .com. Might not bother you but that could be a fair amount of traffic.
                                                    that's planned, not an error
                                                    Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
                                                    AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

                                                    Comment

                                                    • psili
                                                      Confirmed User
                                                      • Apr 2003
                                                      • 5526

                                                      #27
                                                      I've got many, but I like referencing this skeleton version to pick and grab what I need:

                                                      http://www.askapache.com/htaccess/ul...le-sample.html
                                                      Your post count means nothing.

                                                      Comment

                                                      • katharos
                                                        So Fucking Banned
                                                        • Nov 2005
                                                        • 1515

                                                        #28
                                                        please post also related paysites thank you

                                                        Comment

                                                        • Doctor Feelgood
                                                          Confirmed User
                                                          • Nov 2005
                                                          • 2112

                                                          #29
                                                          Originally posted by Yngwie
                                                          Code:
                                                          #HTACCESS MOBILE SITE REDIRECTION CODE
                                                          RewriteEngine On
                                                          RewriteCond %{HTTP_USER_AGENT} (mobile|blackberry|j2me|symbian|windows.ce) [NC]
                                                          RewriteRule ^(.*)$ http://mobile.slutty8teen.com [R=302,L]
                                                          ive been seeing alot of hits from this new one called Droid

                                                          Comment

                                                          • Lace
                                                            Too lazy to set a custom title
                                                            • Mar 2004
                                                            • 16116

                                                            #30
                                                            I don't feel like digging on my servers. Just a basic re-write for wp is about all I use.
                                                            Your Paysite Partner
                                                            Strength In Numbers!
                                                            StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                                            Comment

                                                            Working...