How does PHPApache implement image high-level anti-image acquisition websites? The content page has only one image. You do not need to consider search engine optimization. Is there any way to prevent high-level data collection? The first time I wrote a program, I do not know much about it. I hope your predecessors will advise me. PHP Apache: How to Implement image anti-DDoS pro
For an image website, the content page has only one image. You do not need to consider search engine optimization.
Is there any way to prevent high-level data collection? The first time I wrote a program, I do not know much about it. I hope your predecessors will advise me.
Reply content:
PHP Apache: How to Implement image anti-DDoS pro
For an image website, the content page has only one image. You do not need to consider search engine optimization.
Is there any way to prevent high-level data collection? The first time I wrote a program, I do not know much about it. I hope your predecessors will advise me.
1. If you do not want regular web crawlers to crawl, you can writeRobots.txt
, Can refer to Baidu https://www.baidu.com/robots.txt
2. Others are PHP verification.
If (author () {// verify COOKIE/SESSION (if login is not verified, crawlers can still record the cookie on the previous page) // verify USERAGENT (fake) // verify the REFERER (the REFERER can be fake, and some people will turn off the REFERER) // even verify the GET parameter (the parameter can be a random number generated according to certain rules based on time, but the cache becomes invalid.) header ("Content-type: image/jpg"); readfile ("test.jpg ");}