I have an E-commerce site (built on OpenCart I'm using an SEO pack plugin that keeps a list of 404 errors, so we can make redirects.

As of a couple of weeks ago, I keep seeing a LOT of 404s that don't even look like links:

  • 999999.9 //uNiOn//aLl /**/sElEcT 0x393133353134353632312e39
  • 999999.9 //uNiOn//aLl /**/sElEcT 0x393133353134353632312e39,0x393133353134353632322e39
  • 999999.9 //uNiOn//aLl /**/sElEcT 0x393133353134353632312e39,0x393133353134353632322e39,0x393133353134353632332e39
  • ...and so on, until it reaches:
  • 999999.9" //uNiOn//aLl /**/sElEcT 0x393133353134353632312e39,0x393133353134353632322e39,0x393133353134353632332e39,0x393133353134353632342e39,0x393133353134353632352e39,0x393133353134353632362e39,0x393133353134353632372e39,0x393133353134353632382e39,0x393133353134353632392e39,0x39313335313435363231302e39,0x3931

This isn't happening once, but 30-50 times per example. Over 1600 lines of this mess in the latest 404s report.

Now, I know how to make redirects for "normal" broken links, but I don't even know where to begin to fix this.

  • What exactly are you hoping to accomplish? That isn't clear here. – John Conde May 19 '17 at 22:03
  • These are hacking attempts. You should NOT redirect them!!! You should be blocking access by IP address or using an effective regular expression to block. You should either continue with the 404 notice or issue a 403. Full stop. – closetnoc May 19 '17 at 22:08
  • What do the entries in your server's access log look like? (IP, UA, request URI, etc.) – MrWhite May 19 '17 at 22:54
  • 1
    These are SQL injection attacks and are very likely from the log file as GA would not see these. The IP address is important information but not any user agent. – closetnoc May 19 '17 at 23:21
  • 2
    They are hacking attempts, but they are (likely automated) hacking attempts that are failing, You don't need to do anything. – Tim Fountain May 20 '17 at 16:14

When you get requests for URLs that are hacking attempts, it is usually safe to ignore them. They are usually run by automated scanners that typically scan a large number of hosts looking for vulnerabilities.

The best defense against such attacks is to keep the software on your server up to date with all the latest software releases and security patches. If you do that, your server will not likely be vulnerable to the vast majority of hacking attempts.

If you see a large number of these requests coming from a single IP address, you could block that IP address. You could use either your webserver configuration or your firewall to do so.

You don't want to redirect these junk URLs to anything. There would be no advantage to doing so and it might even cause the scanners to make additional requests against your site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.