DDoS There is an Apache module that was created to prevent a DDoS attack, although it's probably not installed by default. Follow these steps to install the module. Open the terminal window. Issue the command: $ sudo apt-get -y install…
Anti Bad Bots and Crawlers by User Agent
As we know there are many crawlers and spider, such as Googlebot, Baiduspider. But there are also some crawlers not compliance the rules of robots. That will take more pressure for the server. So we should do something to anti…
Ajax Refresh an Image in Mozilla Firefox
I use Ajax reload an captcha code image. $('.load_captcha').click(function(){ var formData = { // CSRF token _token : csrf_token }; $.ajax({ // The URL where we want to POST url : captcha_url, // Define the type of HTTP verb we…
Test a website for Retina without an actual Retina Display
There a way to simulate a Retina display to test a website for HiDPI displays such as Retina. We can using Firefox. Go to about:config Find layout.css.devPixelsPerPx Change it to your desired ratio (1 for normal, 2 for retina, etc.…