Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-16-2012, 07:16 AM   PM User | #1
darksecu
New Coder

 
darksecu's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 93
Thanks: 11
Thanked 1 Time in 1 Post
darksecu is an unknown quantity at this point
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
darksecu is offline   Reply With Quote
Old 06-16-2012, 07:32 AM   PM User | #2
darksecu
New Coder

 
darksecu's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 93
Thanks: 11
Thanked 1 Time in 1 Post
darksecu is an unknown quantity at this point
RewriteEngine on
RewriteRule .*\.(php)$ - [F,NC]

simple rewrite worked ....
darksecu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:17 AM.


Advertisement
Log in to turn off these ads.