DEV Community

loading...

Blocking HTML5 Ping Requests using ColdFusion

gamesover profile image James Moberg ・1 min read

Major browsers are disabling the ability to disable HTML5 ping click tracking.

As a result, you’ll probably start encountering empty form posts with a content-type of "text/ping". If you are not expecting or do not need to receive ping requests to your web server, you can block them without wasting
any resources processing the request further. This is important because this feature has already been used to perform DDoS attacks:

Here's a basic ColdFusion script that will identify and block HTML5 Ping requests.

Discussion

pic
Editor guide