htaccess help please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gouges
    Confirmed User
    • Feb 2003
    • 152

    #1

    htaccess help please

    How would I go about adding the code so that I may redirect based upon referring url?

    So that if traffic comes from www.somedomain.com/somepage.shtml

    that traffic is sent somewhere else.

    Thanks!
  • EZRhino
    Confirmed User
    • Jul 2003
    • 6258

    #2
    I would suggest using a php driven authentication script using your referal list. It should be a simple and inexpesive job for a good php programmer.

    Comment

    • Anothers
      Confirmed User
      • Nov 2001
      • 219

      #3
      Code:
      RewriteEngine on
      RewriteCond %{HTTP_REFERER} ^[url]http://www.notallowedref1.com/.[/url]*$ [NC,OR]
      RewriteCond %{HTTP_REFERER} ^[url]http://www.notallowedref2.com/.[/url]*$ [NC]
      RewriteRule [url]http://www.gotohell.com[/url] [L,R]

      Comment

      Working...