.htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YDG
    Confirmed User
    • Nov 2001
    • 1614

    #1

    .htaccess question

    with .htaccess
    is it possible to stop access to your website from certain refering urls?

    I know you can deny by ip, or url, but i dont think this stops denying by refering url

    So basicaly a way to stop surfers using a certain site to get to yours

    Thanks in advance.
    Promote the webs Highest Rated Teen Paysite TeenDreams.com.
    #1 Teen Paysite at almost every review site on the internet.

    Over 4,500 FHG's and 100's of Hosted Flash Movies and FLV dump Tool.

  • JSA Matt
    So Fucking Banned
    • Aug 2003
    • 5464

    #2
    Are you trying to stop spoofers? You could do a referer check in PHP and redirect them somewhere else but I don't know about blocking them via apache or anything like that

    Comment

    • sexdwarf
      Confirmed User
      • Jan 2005
      • 196

      #3
      yes, in conjunction with mod_rewrite...

      RewriteEngine on
      RewriteCond %{HTTP_REFERER} (domainname\.com) [NC,OR]
      RewriteRule .* - [F]
      ICQ me for any programming projects - Agency quality work for non-agency prices
      ICQ 337 028 441

      Comment

      Working...