Top techniques to avoid 'data scraping' from a website database

后端 未结 14 1866
轻奢々
轻奢々 2020-12-25 14:02

I am setting up a site using PHP and MySQL that is essentially just a web front-end to an existing database. Understandably my client is very keen to prevent anyone from be

14条回答
  •  爱一瞬间的悲伤
    2020-12-25 14:39

    If the data is published, it's visible and accessible to everyone on the Internet. This includes the people you want to see it and the people you don't.

    You can't have it both ways. You can make it so that data can only be visible with an account, and people will make accounts to slurp the data. You can make it so that the data can only be visible from approved IP addresses, and people will go through the steps to acquire approval before slurping it.

    Yes, you can make it hard to get, but if you want it to be convenient for typical users you need to make it convenient for malicious ones as well.

提交回复
热议问题