1

I would like to forbid access to a specific directory when a certain referrer tries to access anything in it including images and sub-directories. Is there a way to do this within my "global" .htaccess (in public_html) or would I have to create a directory specific one in that directory (eg public_html/phasers ) ?

EventHorizon
  • 87
  • 1
  • 7
  • Both ways are possible - you'd want to use a `RewriteCond` to limit the referrer checking only to URLs in that specific directory. To get started, I'd Google `htaccess limit referer` – Pekka Apr 06 '16 at 13:37
  • Possible duplicate with : http://stackoverflow.com/questions/27666318/how-to-block-spam-referrers-like-darodar-com-from-accessing-website – ADreNaLiNe-DJ Apr 06 '16 at 13:38
  • 1
    That limits access to a whole website, not a specific subdirectory. – EventHorizon Apr 06 '16 at 13:39

0 Answers0