Current location: Hot Scripts Forums » Programming Languages » PHP » .htaccess Problem


.htaccess Problem

Reply
  #1 (permalink)  
Old 09-02-04, 07:29 PM
Eric24 Eric24 is offline
New Member
 
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
.htaccess Problem

Having some trouble getting my no hotlinking script to work. Help please ?

PHP Code:

<Files .htaccess
order allow,deny 
deny from all 
RewriteEngine on RewriteCond 
%{HTTP_REFERER} !^$ 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?project-angel.com/.*$ [NC] 
RewriteRule .(jpe?g|gif|bmp|png)$ images/htaccess/hotlink.jpg [L
</
Files
Reply With Quote
  #2 (permalink)  
Old 09-03-04, 09:06 AM
Acecool's Avatar
Acecool Acecool is offline
Aspiring Coder
 
Join Date: Nov 2003
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
That code gets activated if they access the .htaccess file, put the rewrites AFTER </Files>
__________________
Check Acecoolco.com for PHP Tutorials, and other tuts
If you plan on contacting me, please read this: Legal Terms & Conditions
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie found a solution to a date problem. mickey_kamer Perl 4 05-09-07 05:54 AM
Count problem kasic ASP.NET 1 10-20-04 12:23 AM
.htaccess problem Eric24 The Lounge 1 09-01-04 06:19 PM
an unusual problem.... fabulosas10 PHP 0 07-16-04 02:03 AM
.htaccess file Ikoh The Lounge 1 02-27-04 12:11 AM


All times are GMT -5. The time now is 04:24 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.