|
Author |
Message |
OgreINC
Junior WebHelper
Joined: 07 Aug 2003
Posts: 15
|
Posted:
Mon Aug 25, 2003 9:03 pm (20 years, 8 months ago) |
|
how could I edit htaccess file that if someone came from a certain site he couldnt gain access? |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Mon Aug 25, 2003 11:17 pm (20 years, 8 months ago) |
|
you can do it with url rewriting:
Code: | RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://www.site1.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://www.site2.com/.*$ [NC]
RewriteRule .*\.(png|mpg|mpeg|asf|asx|wmv|mp3|rm)$ http://yoursite.com/deny.html [R,NC] |
you can add as many sites to that as you want, and also as many file extenstions as you want. or, for any file you would have this as the last line:
Code: | RewriteRule .* http://yoursite.com/deny.html [R,NC] |
just so you know, I'm not 100% sure about all that, but the first block of code is taken from someone's site and it definately works as intended |
________________________________ It's turtles all the way down... |
|
|
|
OgreINC
Junior WebHelper
Joined: 07 Aug 2003
Posts: 15
|
Posted:
Tue Aug 26, 2003 4:30 pm (20 years, 8 months ago) |
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.250339 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |