Cell Phones - Loans - Remortgages - Download movies - Modded Xbox

PDA

View Full Version : exculde a php file with variables with robots.txt


alexmart
Nov 3rd 2005, 9:41 am
Hello

I have a script that tracks downloads. The URL is in this format :

http://www.site.com/dl.php?var1=string&var2=string

What is the correct command to restrict bots from spidering that file using robots.txt ?
Will "Disallow: /dl.php" be enough ?


Thanks

exam
Nov 3rd 2005, 10:13 am
>> Will "Disallow: /dl.php" be enough ?
Yes. That will disallow *any* file beginning with the string "dl.php" (without the quotes).