Giter VIP home page Giter VIP logo

hijack's Introduction

什么是劫持?

SEO中谈到的劫持是指将别人的网页内容或者整个网站全面复制下来,偷梁换柱放在自己的网站上。

教程主旨

  • 用最简短代码实现整站劫持。
  • 例子使用技术:PHP。

教程大纲

1. 环境预备
	1) Composer: PHP 的类库包管理系统
	2) Guzzle: PHP 的 HTTP client
2. 写代码
	1) 设置
	2) 抓取
	3) 处理
	4) 输出
3. 运行
4. 自己发散性思考和应用

环境预备

  1. 安装 Composer:https://getcomposer.org/download/
  2. 使用 Composer 安装 Guzzle: $ composer require guzzlehttp/guzzle

写代码

https://github.com/kiwi888/hijack/blob/master/index.php

运行

$ php -S localhost:888 index.php

hijack's People

Contributors

kiwicash avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.