Blocking URL's.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leroytrolley
    XXX Video Editor
    • Dec 2005
    • 2301

    #1

    Blocking URL's.

    Hi.

    Is there a web site that makes code for you to block incoming traffic from certain url's?

    Leroy
    XXX Video Editor
  • psili
    Confirmed User
    • Apr 2003
    • 5526

    #2
    Google:

    .htaccess block url
    Your post count means nothing.

    Comment

    • Violetta
      Affiliate
      • Jul 2004
      • 28735

      #3
      don't you just love those google answers!
      M&A Queen

      Comment

      • psili
        Confirmed User
        • Apr 2003
        • 5526

        #4
        Originally posted by Rockatansky
        don't you just love those google answers!
        There's something about the "give a man a fish, he smells for a day. teach a man to fish, he smells fishy for a lifetime" phrase that makes me reply with the "google" answers.
        Your post count means nothing.

        Comment

        • psili
          Confirmed User
          • Apr 2003
          • 5526

          #5
          One way might be to edit an .htaccess file in your webroot's directory and paste in the following:

          Code:
          <Limit GET HEAD POST>
          order allow,deny
          deny from http://www.test.com
          allow from all
          </LIMIT>
          http://www.htmlbasix.com/blockusers.shtml
          Your post count means nothing.

          Comment

          • Lazonby
            Confirmed User
            • Feb 2006
            • 2262

            #6
            Originally posted by leroytrolley
            Hi.

            Is there a web site that makes code for you to block incoming traffic from certain url's?

            Leroy
            Looking at your sig, you'd be better off to have your sites on international TLDs, rather than on .co.uks.

            Comment

            • Dirty Dane
              Sick Fuck
              • Feb 2004
              • 9491

              #7
              You can also bounce them

              Comment

              • psili
                Confirmed User
                • Apr 2003
                • 5526

                #8
                Originally posted by Dirty Dane
                You can also bounce them
                Nice call, on that - A little javascript or server side script to check the HTTP_REFERER and bounce them to an affiliate program of your choice. - You smarty... I dig that much more than a hard block. Thanks.
                Your post count means nothing.

                Comment

                • bizarredollars
                  Confirmed User
                  • Mar 2006
                  • 1582

                  #9
                  Let me know what you need, and I will write an htaccess file for you - alan [at] bizarredollars.com -- if you already have an .htaccess file in place, I will need to see it to make sure it does not fuck anything else up.

                  [email protected]
                  icq: 205-252-550

                  Comment

                  • bizarredollars
                    Confirmed User
                    • Mar 2006
                    • 1582

                    #10
                    Originally posted by Lazonby
                    Looking at your sig, you'd be better off to have your sites on international TLDs, rather than on .co.uks.
                    .co.uk's have their uses..

                    [email protected]
                    icq: 205-252-550

                    Comment

                    • vantage
                      Confirmed User
                      • Jun 2005
                      • 214

                      #11
                      Originally posted by psili
                      One way might be to edit an .htaccess file in your webroot's directory and paste in the following:

                      Code:
                      <Limit GET HEAD POST>
                      order allow,deny
                      deny from http://www.test.com
                      allow from all
                      </LIMIT>
                      http://www.htmlbasix.com/blockusers.shtml
                      FALSE!
                      "deny from 1.2.3.4" or "denny from test.com" blocks all user with IP 1.2.3.4. or on the host test.com, not with the referer http://www.test.com


                      Of he like to block the referer http://bad_page.com.. then ModRewrite

                      Comment

                      • RobbieRye
                        Registered User
                        • Oct 2005
                        • 616

                        #12
                        Sure there are

                        The best one (.htaccess) is stated above. Also, iptables will do it.

                        But, things like this are why hosting support exists. Write a ticket and they should help you out and teach you how to do it.

                        Comment

                        • vantage
                          Confirmed User
                          • Jun 2005
                          • 214

                          #13
                          Block by referer:

                          Code:
                          RewriteEngine on
                          RewriteCond %{HTTP_REFERER} (badhost1\.com) [NC,OR]
                          RewriteCond %{HTTP_REFERER} (badhost2\.com) [NC,OR]
                          RewriteCond %{HTTP_REFERER} (badhost3\.com) [NC]
                          RewriteRule .* - [F]

                          Comment

                          Working...