In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to write a simple anti-CC attack refresh jump code", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to write a simple anti-CC attack refresh jump code"!
Self-made simple anti-CC attack refresh jump code, refresh too much per second and then jump to the defense cc page, 5 seconds later return to the home page of the website, feeling that you can only prevent a random refresh, that is, the person who opens the website with a random point.
Use: take WordPress as an example, create a cc.php file in the root directory, add the php code to it and save it, and then create a cc.html file to put the html code into the save. Add the call code in front of the index.php file to the root directory and call the cc.php file. You can lengthen the time modification cycle in cc.php.
Create a PHP file called cc.php to copy the following code into it:
Create another cc.html file to copy the following code into it:
In order to prevent CC refresh attack, jump to the home page after 5 seconds * {box-sizing:inherit;} body {min-height:100vh;display:flex;justify-content:center;align-items:center;background:#151924;padding:0;margin:0;} .loading {--color:#F5F9FF;--duration:2000ms;font-family:Roboto,Arial;font-size:24px;position:relative;white-space:nowrap;user-select:none;color:var (--color);} .loading span {--x min-height:100vh;display:flex;justify-content:center;align-items:center;background:#151924;padding:0;margin:0; 0 -- Yizhuo Laozheng, MouveyMizhuo, Zhaoqiang, MouveyMizhuo, Zhaoqiang, Mashi, Zhaoqiang, Mashi, Zhaoshi, Zhaoqiang, Yashi, Zhaoqiang, Yaozhuo, Yaoqiang, Yaozhuo, Yaoqiang, Yizhun, Yizhuo, Yizhun, Yizhun, Yizhuo, Yizhuo, Yizhun, Yizhuo, Yizhuo, Yizhun, loading.start span loading.start span (animation:move var (--duration) ease-in-out var (- delay) } @ keyframes move {30% {transform:translate (var (--x), var (--move-y));} 82% {transform:translate (var (--x), var (--move-y-s));} prevent CC refresh attack and jump to the home page after 5 seconds
$(document) .ready (function () {let loading=$ ('.loading'). WrapInner ('), min=20,max=70,minMove=10,maxMove=20;startAnimation (loading); loading.on (''animationend webkitAnimationEnd oAnimationEnd'',''span:last-child'',e= > {startAnimation (loading)}); function setCSSVars (elem,min,max,minMove,maxMove) {let width=Math.ceil (elem.width ()), text=elem.text (); for (let item1
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.