Thus wrote Not4u,
[color=blue]
> Hello,
>
> Someone is using HttpWebRequest to automaticly post datas or retrieve
> datas from my site.
> How can i stop pages to be get by the HttpWebRequest method ?
> I know that pages get with HttpWebRequest have is no referer.[/color]
That's not true. There's no way of knowing whether a request was sent by
a browser or some application simply sending the very same HTTP headers (unless
you could tell from certain implementation specific behaviors at TCP level...).
[color=blue]
> So for me the solution is to check the referer of the calling page, if
> the referer is my domain, ok i can send the page, if not i can
> redirect
> to an error page.
> Is it a good idea ?
> If you have other solution ?[/color]
If you think that you're victimized by a robot, you may try to add a robots.txt
(see
http://www.robotstxt.org/wc/faq.html#robotstxt) to your web site.
Another way is to look for suspicious access patterns in your web server
logs that belong to certain source IP addresses, and block these addresses
at a firewall.
Cheers,
--
Joerg Jooss
news-reply@joergjooss.de