Websites are constantly being plagiarized and collected. Since Baidu has not yet effectively cracked down on collection websites, we cannot expect Baidu to identify these collection sites. So we can only rely on ourselves to add copyright text to the content we have worked so hard to combat. This kind of collecting behavior for nothing. Of course, if there are pictures in your website articles, then please remember to put your own LOGO, and this LOGO should not be fixed in a corner of these pictures, but must appear randomly anywhere in the pictures, so that it can be invisible and invisible. The collector lamented: The other party's website logo is really unpredictable and hard to guard against...
Get to the point. How can we randomly insert copyright text into our articles? I spent some time last night and wrote a simple code that randomly inserts random text, asp version:
''===Randomly generate interference text function starts===
''===Randomly generate interference text function 1===
function rndk()
dim s,s1,n,n1
''Insert your website copyright text randomly, separate multiple ones with |
s=Script Home|Script: http://www.vevb.com. |http://www.vevb.com. |Jb51. net. |<font style=display:none>http://www.kanshule.com</font>|<span style=display:none><a href=http://www.vevb.com>Script</a> </span>
s1=split(s,|)
Randomize
n=Int((ubound(s1) - lbound(s1) + 1) * Rnd + lbound(s1))
Randomize
n1=Int((10 - 1 + 1) * Rnd + 1)
if n1<=3 then '30% probability of occurrence
rndk=s1(n)
else
rndk=
end if
end function
''===Randomly generate interference text function 2===
function transtr(str) 'Call this function to convert
dim str1,i,k
k=<p></p> 'Split keywords
str1=split(str,k)
for i=lbound(str1) to ubound(str1)
transtr=transtr&str1(i)&rndk()&k
next
end function
''===Randomly generate interference text function ends===
When making a specific call, such as our content field content, it is ok to use the above function to convert it, like transtr(content). The splitting keyword I chose here is <p></p> before the end of the paragraph. You can also change it to something else such as <br>line break, etc. If your field has not been converted by UBB, then the line feed and carriage return symbol is CHR( 10) & CHR(10), just change the split keyword to it.
Although the content of our website cannot be said to be 100% original, we have worked hard to compile it piece by piece. Others can steal months or even years of your hard work in just a few hours through the program. , it would not be comfortable to put on anyone.
Therefore, Piaoyi releases such randomly inserted copyright codes, hoping to curb the arrogance of some of these collectors.
If you have a better way, please leave your comments.