Iframe removal script

find /home/zzz/public_html/ \( -name “*.php” -o -name “*.html” -o -iname “*.htm” \) -exec grep -l “xxx” {} \; -exec sed -i “/”xxx”/d” {} \;

where zzz is the account and xxx is the iframe code

———————————————————————————–

Add these lines into .htaccess

RewriteEngine On

RewriteCond %{QUERY_STRING}    ^.*(;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC]
RewriteRule .* – [F]

About

anees

Posted in Issues, Scripts

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats
  • 121,366 hits
Follow

Get every new post delivered to your Inbox.

Join 211 other followers

%d bloggers like this: