How do I block *****?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tenletters
    Confirmed User
    • Jan 2001
    • 2079

    #1

    How do I block *****?

    Wondering how I can, if I can, block certain domains from accessing pages on my domain.

    What I need is something that will grab people from other countries and send them off to a url specified in the code.

    (example - www.bandwidtheaters.ru)

    I've looked around but must be looking in wrong places.

    Thanks in advance!
    Useless Without Pics
  • ldinternet
    Confirmed User
    • Apr 2001
    • 8245

    #2
    I've wondered the same thing. I'd like to know how to serve based on country also...

    I've mastered .htaccess as per my requirements, hotlink protection, error documents and referrer redirection.

    However, with the redirection, I can only redirect, for example, if the referrer is NOT cheatingscumbags.com

    I'd like to know how to set up .htaccess redirect (for example) traffic if it IS coming from cheatingscumbags.com

    Comment

    • Henrik
      Confirmed User
      • Jan 2001
      • 228

      #3
      IIS 5.0 has a nice feature, where you can grant access to all Ip adresses or domains except for... <your list> etc.. Those on the list will just get a 403 error. Is that what you are looking for ?

      Comment

      • TFCash
        Confirmed User
        • Apr 2001
        • 1738

        #4
        you can do this with php pretty easily. Something like this:

        <?php
        ereg("\.([a-z]+)$", $country, $regs);
        switch ($regs[1]) {
        case "uk": header("Location: http://....uk site"); break;
        case "es": header("Location: http://...spain site"); break;
        default: header("Location: http://...default site");
        }
        ?>


        Tim
        TeenFlood.com Online since 1998.

        TFCash KissMeGirl
        VirginRiches MondoBucks

        tim at tfcash.com or submit a ticket at our HelpDesk

        Comment

        • tenletters
          Confirmed User
          • Jan 2001
          • 2079

          #5
          No more like something I can put on the server that would control all pages on my domain and subdomains.

          Is there an htaccess that would make this happen?
          Useless Without Pics

          Comment

          • tenletters
            Confirmed User
            • Jan 2001
            • 2079

            #6
            hardcore... I don't know anything about php... where would I put that code on my server?
            Useless Without Pics

            Comment

            • Susan
              Confirmed User
              • Feb 2001
              • 772

              #7
              I am working on the same idea but with a few extras for good measure. Wish I had learn't php inline code instead of perl

              HCH - I have started reading the PHP book - its not so bad, just finding the time that's the problem.
              Stupid Spice

              Comment

              • Paul Markham
                Too old to care
                • Jun 2001
                • 52942

                #8
                UNBAN ME, LENSMAN!



                Blowout deal. 880 videos, 2,400 image sets, plus many RAW videos. $500.
                PM me for a deal. Skype Paulmarkham70

                Comment

                • mrmovie
                  So Fucking Banned
                  • Jun 2003
                  • 396

                  #9
                  I have been EATEN!

                  http://www.stormfront.org/forum/

                  Comment

                  Working...