DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   prevent scraping (http://www.daniweb.com/forums/thread85124.html)

Dsiembab Aug 1st, 2007 7:16 pm
prevent scraping
 
Is their a way to prevent screen scraping? Thanks Dave

Ezzaral Aug 1st, 2007 7:35 pm
Re: prevent scraping
 
Quote:

Originally Posted by Dsiembab (Post 413480)
Is their a way to prevent screen scraping? Thanks Dave

Only one that I know of: don't produce any output.

Dsiembab Aug 1st, 2007 8:37 pm
Re: prevent scraping
 
you mean like chmod or .htaccess, I guess I'll have to read up on perl. thanks anyways

Ezzaral Aug 2nd, 2007 12:14 pm
Re: prevent scraping
 
Quote:

Originally Posted by Dsiembab (Post 413500)
you mean like chmod or .htaccess, I guess I'll have to read up on perl. thanks anyways

No, I mean that if your script is sending any output to a user at all (html, text, whatever), that user can scrape it.

Dsiembab Aug 2nd, 2007 4:29 pm
Re: prevent scraping
 
I was thinking their might be a way to password protect the directory and use a curl function to forward a password to the directory with the data being viewed. That way the directory cannot be viewed and the curl function being php will not be veiwed either.

Ezzaral Aug 2nd, 2007 5:38 pm
Re: prevent scraping
 
It sounds like you are talking about securing file access - not screen scraping.

Dsiembab Aug 2nd, 2007 8:14 pm
Re: prevent scraping
 
I would like to secure file access, can you point me in the right direction? Thanks Dave

Ezzaral Aug 3rd, 2007 12:20 pm
Re: prevent scraping
 
Quote:

Originally Posted by Dsiembab (Post 414061)
I would like to secure file access, can you point me in the right direction? Thanks Dave

If you are using Apache then .htaccess will allow you to control that. Here are a couple of tutorials:
http://httpd.apache.org/docs/1.3/howto/htaccess.html

http://www.javascriptkit.com/howto/htaccess.shtml

http://articles.techrepublic.com.com...1-5034311.html


All times are GMT -4. The time now is 1:57 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC