The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Text Obfuscate
I'm trying to find something that will allow me to add a set of bbcode tags (something like [safe]text here[/safe] which, although showing the text on the post, will basically encode the output on the searchable page to an 'encode64' result - this to avoid search engines etc from picking up on the "text here" and thereby adding a little security to what's posted.
I'm sure I saw this somewhere before and if anyone's done this I'd appreciate any info rather than having to reinvent the wheel. Please? TIA. |
#2
|
||||
|
||||
How would users decode it?
|
#3
|
||||
|
||||
Automated, hopefully - simply, the user would post thus:
"I spoke to [safe]Andrew Smith[/safe] today and we were talking about...." so the post itself would read: "I spoke to Andrew Smith today and we were talking about..." but the View Source on the html page itself would read: "I spoke to gtYdhjdjijrh8aeh today and we were talking about... " so that the actual name, for instance, could not be seen by search bots/spiders. This would add a certain safety to any posts that may contain names and such who's privacy is to be respected. I was thinking of using a base64 javascript function for this, would this be the best way to go? |
#4
|
|||
|
|||
Impossible!
If it shows to the user, it is in the html source. You could however create 1 that would not display to guests. |
#5
|
||||
|
||||
hmm - I think its possible by using javascript so that the view source would say something like:
""I spoke to <script type="javascript">document.write(base64_decode('gt Ydhjdjijrh8aeh'))</script> today and we were talking about... " but I'm sure there's no such function built in... or am I wrong? |
#6
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showthrea...ess+obfuscator |
#7
|
||||
|
||||
Thanks for the link - I've had a look and it's not quite the solution I'm looking for. I'll have to see how I can get it to be set up within the class_bbcode.php and find the hooks that will be needed to parse it up. Looks like I'll have to use the php base64_encode() function within the parser, then use a javascript decode as document.write (as above) to reproduce the original text on the posts. I'll keep this thread posted as to my progress
|
#8
|
||||
|
||||
Well for anyone who's interested, I managed to work this out although it meant adding code to two php files (class_bbcode.php and class_bbcode_alt.php) and adding a function to vbulletin_global.js.
Basically I'm using the php function base64_encode within the class_bbcode.php call when parsing the text for the tag, and returning a html string that contains a javascript call to a decode64 function that I've added to the .js file. Seems to work great, and the html return string can also have a 'span style=color:' tag to highlight the obfuscated word. If anyone wants the code and instructions (I have no idea how to write it up as a plugin etc) let me know. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|