 |

JamesKB
User
Dec 12, 2005, 5:47 PM
Post #1 of 1
(1951 views)
Shortcut
|
|
htaccess file question
|
Can't Post
|
|
I have been investigating the .htaccess file. I have a question that I am sure some one here can answer. I have seen two (2) diff syntex for .htaccess to not allow "Wget" stroll my site. Code 1: RewriteCond %{HTTP_USER_AGENT} Wget RewriteRule ^.*$ X.html [L] Code 2: RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^Wget RewriteRule ^.* - [F,L] NOTE the diff: In Code 2 there is "RewriteEngine On" on the first line and a "^" before "Wget" on the Rewrite line and the "RewriteRule" line is diff. Is there any diff? If so what? Which is best to use?? Thanks for your time. JamesKB Have a nice day.... -- James
|
|
|  |
|