Welcome to WebmasterWorld Guest from 54.196.231.129

Forum Moderators: goodroi

Message Too Old, No Replies

Something a little different

     
6:30 pm on Mar 10, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Mar 21, 2003
posts:245
votes: 0


Is there any way to restrict acces to subdirectory of a main directory if the main directory will be dynamic. For example;

I have a mod_rewrite which produces URLs like this;
[domain.tld...]

sadly it also supplies the same content under;
[domain.tld...]

(where n i sthe id of the category the item was posted)

can i stop bots spidering dynamic-item-title/catid/?

I'm sure there's probably a mod_rewrite i could do to solve this too, but thats something i cant figure out lol

1:56 pm on Mar 12, 2007 (gmt 0)

Administrator from US 

WebmasterWorld Administrator goodroi is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 21, 2004
posts:3080
votes: 67


you could use wildcards aka pattern matching. this is not part of the official robots.txt protocol but it is supported by most of the big spiders. it enables you to block any url that contains a certain string in it.

Google Pattern Matching Instructions [google.com]
Yahoo Wildcards Instructions [ysearchblog.com]
MSN Instructions [search.msn.com]

please note this is not supported by all spiders