Over a million developers have joined DZone.

Search & Replace Iframe Hacked Files On Webserver

DZone's Guide to

Search & Replace Iframe Hacked Files On Webserver

Free Resource
// If you've suffered iframe injections in your index.html and index.php files then this grep/sed command will come in handy for clearing the majority of them out.
// Please be careful and test first with just the grep command to ensure you don't clear out anything you need.
// Does NOT backup files.

grep -lr -e '

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}