Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
jquery-spamguard
Advanced tools
Readme
npm install jquery-spamguard
yarn add jquery-spamguard
$(selector).spamguard();
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-spamguard/dist/jquery.spamguard.js"></script>
<a href="#" class="protect-me" data-name="mark" data-domain="gmail" data-tld="com"></a>
<script>
$(function(){
$(".protect-me").spamguard();
});
</script>
Attribute | Type | Default | Description |
---|---|---|---|
data-name | string | Everything before the @ of your email address | |
data-domain | string | Domain name without extension | |
data-tld | string | Extension without . | |
data-number | string | You can add letters and special characters for obfuscation (see example) | |
data-mailto | boolean | false | Creates a mailto: -link |
data-content | boolean | false | When true , your own content will be kept. Otherwise it returns the email address. |
data-subject | string | Set a custom subject for mailto: -link | |
data-message | string | Set a custom message for mailto: -link | |
--- | --- | --- | --- |
data-text | string | ||
data-remove-this | string |
<a href="#" class="protect-me" data-name="mark" data-domain="gmail" data-tld="com" data-content="true" data-mailto="true">
<i class="fa fa-heart"></i>
</a>
<script>
$(".protect-me").spamguard();
</script>
<a href="#" class="protect-me" data-number="_+1 %&80#8 !555;; 01qY@@23" data-mailto="true"></a>
<script>
$(".protect-me").spamguard();
</script>
<a href="#" class="protect-me" data-text="H$e__l-[l].o ::W=o)r%&%ld.!" data-remove-this="§$%&/()=_:;.-[]"></a>
<script>
$(".protect-me").spamguard();
</script>
FAQs
🤖 Protect your email address from getting crawled by spam bots.
The npm package jquery-spamguard receives a total of 5 weekly downloads. As such, jquery-spamguard popularity was classified as not popular.
We found that jquery-spamguard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.