How do I block sites in .htaccess?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jakke PNG
    ex-TeenGodFather
    • Nov 2001
    • 20306

    #1

    How do I block sites in .htaccess?

    I've found some japanese (?), russian (?), and arabic (?) sites that open my galleries, and sites in frames. How do I fuck them up?

    Thanks.
    ..and I'm off.
  • DerekT
    Confirmed User
    • Jun 2001
    • 112

    #2
    Try this.

    http://java-script.4t.com/#breakframes
    Last edited by DerekT; 09-03-2003, 01:09 PM.

    Comment

    • Jakke PNG
      ex-TeenGodFather
      • Nov 2001
      • 20306

      #3
      Originally posted by DerekT
      http://hahahahahahahahahaha.internet...ak-frames.html

      Try this.
      Lol, gee that's helpful
      ..and I'm off.

      Comment

      • Jakke PNG
        ex-TeenGodFather
        • Nov 2001
        • 20306

        #4
        No.
        I'm not THAT stupid.

        I'll check it out.
        ..and I'm off.

        Comment

        • Jakke PNG
          ex-TeenGodFather
          • Nov 2001
          • 20306

          #5
          I don't want them to see the pages at all.
          ..and I'm off.

          Comment

          • DerekT
            Confirmed User
            • Jun 2001
            • 112

            #6
            http://www.able2know.com/forums/viewtopic.php?t=5040

            This has PHP code and also lists most language codes.

            Comment

            • Anothers
              Confirmed User
              • Nov 2001
              • 219

              #7
              try this


              Code:
              # Rewrite engine
              RewriteEngine on
              # Denied IPs
              RewriteCond %{REMOTE_ADDR} ^101.101.101.101$ [OR]
              RewriteCond %{REMOTE_ADDR} ^102.102.102.102$
              RewriteRule .* - [F]
              # Denied Ref
              RewriteCond %{HTTP_REFERER} ^[url]http://www.notallowedref1.com/.[/url]*$ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^[url]http://www.notallowedref2.com/.[/url]*$ [NC]
              RewriteRule .* - [F]
              you can block ip accessing your site (# Denied IPs) or Referers (# Denied Ref

              when you want to send them to other page you must change

              Code:
              RewriteRule .* - [F]
              into

              Code:
              RewriteRule .* [url]http://www.sitewhenyouwantthemtogo.com[/url] [R,L]
              Edited: put this on the end of your .htaccess file

              Comment

              Working...