I am really confused, why you did not understand this problem.
First of all, I have google sitemap, and I update it regularly. you can see it http://www.japonya.org/sitemap.xml
So although my sitemap do not include
and other three spam urls in google sitemap, or anywhere in my website. Google indexed these pages.
What is problem is, wordpress shows my index page when you hit these spam urls. So, I think, google thinks that this is content duplication. Because I have one real index page, and 6 spam urls, which shows the same index page.
What I want to do is remove all this spam urls. And I also want wordpress to show an error page when somebody try to access http://www.mysite.com/?ref=something .
There is a only one updated plugin for this, but it requires to add some php code to index.php of wordpress and a couple of other installation requirements.
What I am really asking for is: a rewrite or redirect rule for my htaccess file which will do
if (someone requests = http://www.mydomain.com/?ref=X ) then show file not found error
and if (someone requests =www.mydomain.com/?ref=already_indexed_spam_url) then 301 redirect it to http://www.mydomain.com
I dont know about htaccess files, rewrite rules, but I tried a couple of examples which I found on the net, but they made my website unaccessible. So if there is someone who knows how to write the query for htaccess file which (I think) I explained above, it could be helpfull.