Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder darksecu's Avatar
    Join Date
    Dec 2011
    Location
    India
    Posts
    110
    Thanks
    11
    Thanked 1 Time in 1 Post

    protect directory hot linking

    i need protection against hot linking of "inc" folder which contains all .php files

    can any one tell me what code do i need to put in .htaccess to do that..

    thanks,
    Rahul

  • #2
    Regular Coder darksecu's Avatar
    Join Date
    Dec 2011
    Location
    India
    Posts
    110
    Thanks
    11
    Thanked 1 Time in 1 Post
    RewriteEngine on
    RewriteRule .*\.(php)$ - [F,NC]

    simple rewrite worked ....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •