Sucuri Docs > Plugins > SiteCheck Widget

SiteCheck Widget

Want to add the SiteCheck scanner to your site? Do you want to allow your visitors to check their own sites to see if they have been compromised? The Sitecheck widget allows just that. If you are an affiliate, you can add your affiliate code in the widget generator and make a 25% commission from anyone using your code. If you are not an affiliate, you can sign up to become one here.

Examples

CLEAN

Preview

Source

<div id="sucuri-sitecheck" data-background="none" data-padding="0" data-bwidth="0" data-bradius="0"></div>
<script src="http://sucuri.net/sucuri-sitecheck-widget.js?1555376152"></script>

DEFAULT

Preview

Source

<div id="sucuri-sitecheck"></div>
<script type="text/javascript" src="//sucuri.net/sucuri-sitecheck-widget.js?1555363842"></script>

DARKNESS

Preview

Source

<div id="sucuri-sitecheck" data-width="317" data-background="url(https://kb.sucuri.net/uploads/sitecheck-widget-example-darkness.jpg)" data-color="#fff" data-padding="30" data-bwidth="0"></div>
<script type="text/javascript" src="//sucuri.net/sucuri-sitecheck-widget.js?1555363842"></script>

ACQUA

Preview

Source

<div id="sucuri-sitecheck" data-width="317" data-background="url(https://kb.sucuri.net/uploads/sitecheck-widget-example-aqua.jpg)" data-color="#fff" data-padding="30" data-bwidth="0"></div>
<script type="text/javascript" src="//sucuri.net/sucuri-sitecheck-widget.js?1555363842"></script>

RUSTIC

Preview

Source

<div id="sucuri-sitecheck" data-width="317" data-background="url(https://kb.sucuri.net/uploads/sitecheck-widget-example-rustic.jpg)" data-color="#fff" data-padding="30" data-bwidth="0"></div>
<script type="text/javascript" src="//sucuri.net/sucuri-sitecheck-widget.js?1555363842"></script>

CHRISTMAS

Preview

Source

<div id="sucuri-sitecheck" data-width="317" data-background="url(https://kb.sucuri.net/uploads/sitecheck-widget-example-christmas.jpg) no-repeat -1px -158px" data-color="#fff" data-padding="30" data-bwidth="0"></div>
<script type="text/javascript" src="//sucuri.net/sucuri-sitecheck-widget.js?1555363842"></script>

Customize


Settings

You can customize the design of the widget using these options. They will override the default values set by the widget’s JavaScript code. To use these options, you will need to add attributes to the widget container like this: data-{option_name}.

Option Type Description Default
debug boolean Determines whether the debug messages in the browser’s JavaScript console will be printed or not. false
affcode string Defines an affiliation code for SiteCheck promotion and monetization. false
width integer Sets the width of the widget container. The element’s size inside the box will be calculated automatically. 300
height integer Sets the height of the widget container. This can be an integer indicating pixels or auto. auto
position string Set a specific fixed position on the screen. Valid values are: top-left, top-right, bottom-left, button-right, none. If this attribute is not passed, the default position will be relative to the position of the container identifier. none
ptop integer Sets the margin from the top of the screen where the widget should be positioned. 10
pleft integer Sets the margin from the left of the screen where the widget should be positioned. 10
pbottom integer Sets the margin from the bottom of the screen where the widget should be positioned. 10
pright integer Sets the margin from the right of the screen where the widget should be positioned. 10
padding integer Sets the padding width of the container inside the main container box, where the text and form are rendered. 10
bwidth integer Defines the width of the border around the widget. It can be removed using the value 0. 3
bcolor hexdec A hexadecimal value representing a color to use in the border around the widget. #333
bradius integer Sets the value for the border-radius of the widget. It can be removed using the value 0 6
background hexdec Sets a background color of the widget. You can use either a hexadecimal value representing a color or an image URL. If you are using an image, you can also specify the repetition property and positioning. #d7d7d7
color hexdec Sets the color of the text inside the widget container as well as the title, description and credits. #333
Was this article helpful?