Forum Moderators: phranque

Message Too Old, No Replies

htaccess not work

Problem, my htaccess not work

         

milouchouchou

10:40 am on Oct 23, 2004 (gmt 0)

10+ Year Member



Hello everyone
Excuse my English, but it is not my language

I use this in my htaccess to block the remote loading of my site but I manage to download my site with HTTrack.

RedirectPermanent /milannu/dossier http://www.example.com/milannu/inc/im_cat/
ErrorDocument 404 http://www.example.com/err404.php
#these 2 lines work perfectly

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^HTTrack$ [NC]
RewriteRule ^.*$ http://www.example.com/trouve.html [R,L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.example.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://example.com/.*$ [NC]
ReWriteRule .*\.(gif¦png¦jpeg)$ - [F]

Where is my error?

In advance large a mercy.

[edited by: jdMorgan at 2:58 pm (utc) on Oct. 23, 2004]
[edit reason] Removed specific URLs per TOS [/edit]

Span

12:12 pm on Oct 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've seen HTTrack as HTTrack 3.0 as well as part of an IE user agent string. So if you don't use the start and end anchors it should work.

RewriteCond %{HTTP_USER_AGENT} HTTrack [NC]

milouchouchou

3:55 pm on Oct 23, 2004 (gmt 0)

10+ Year Member



Thank you Span for your answer
It goes now
Good evening