# Page scraping dangers

**URL:** <https://forum.kirupa.com/t/page-scraping-dangers/271075>\
**Category:** programming\
**Created:** [September 18, 2008, 3:35am UTC](https://forum.kirupa.com/t/page-scraping-dangers/271075 "2008-09-18T03:35:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [September 18, 2008, 3:35am UTC](https://forum.kirupa.com/t/page-scraping-dangers/271075/1 "2008-09-18T03:35:43Z")

</div>

```php

$sourceCode = file_get_contents("www.site.com");

```

When you use file\_get\_contents() to grab a page’s source code, will the site owner have a way to discern A) the server that is scraping them or B) be able to tell that this page was not accessed traditionally via a browser?

Also, is it possible to prevent people from scraping your site?
