Is this .htaccess code correct ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adult Site Traffic
    Confirmed User
    • Mar 2003
    • 5093

    #1

    Is this .htaccess code correct ?

    To redirect surfers who hit any link to my-site.com on a referring site (some-referer.com) to be redirected to my-site.com/403.html?

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} ^http://www.some-referer.com/.*$ [NC]
    RewriteRule ^/403.html [PT]
    Thank you.

    ALL Domains and Websites are GOING AWAY NOW! Ask me!
    Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

    .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
  • Adult Site Traffic
    Confirmed User
    • Mar 2003
    • 5093

    #2
    Oh, would I also need to use:

    Code:
    RewriteCond %{HTTP_REFERER} ^http://www.some-referer.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} ^http://some-referer.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} ^http://subdomain.some-referer.com/.*$ [NC]
    ?

    TY

    ALL Domains and Websites are GOING AWAY NOW! Ask me!
    Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

    .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

    Comment

    • datezonline
      A man trapped in a woman's body
      • Nov 2004
      • 450

      #3
      no...........
      epassporte are assholes with bad service and no fraud protection, they are based offshore in st kitts so they cant be sued when they fuck you over

      Comment

      • Adult Site Traffic
        Confirmed User
        • Mar 2003
        • 5093

        #4
        Originally posted by datezonline
        no...........
        Why ?

        .

        ALL Domains and Websites are GOING AWAY NOW! Ask me!
        Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

        .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

        Comment

        • Adult Site Traffic
          Confirmed User
          • Mar 2003
          • 5093

          #5
          Bump....

          ALL Domains and Websites are GOING AWAY NOW! Ask me!
          Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

          .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

          Comment

          • Lycanthrope
            Confirmed User
            • Jan 2004
            • 4517

            #6
            You can't show them something on your site if you are telling them that they can not see your site. Either send them to another domain, dialer page or whatever.

            Try this: (This will handle the domain / all subdomains / and all TLDs for "some-referer" ;) .

            Code:
            RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*(-|.)some-referer(-|.).*$ [NC]
            RewriteRule ^(.*)$ http://www.forum-leeches-here.com [R,L]

            Comment

            Working...