Jump to content

Recommended Posts

That css/javascript hack is actually a serious privacy implication. For example Daniel could lure you to a page on this site, then load that array of sites, then find witch ones you viewed, then send back the server via ajax then store in it the DB, then profile it threw an admin panel and see what dirty pron sites you all are viewing. Then quietly laugh to himself. >:)

$kwds = array('look','google','manual');
foreach($kwds as $v) {
  if (stripos($post,$v) !== false) $needle = true;
}
if (!in_array('php.net',$browser_history) && $needle) {
  echo "We're sorry, but your post has not been submitted, because we have detected B.S.  Please try again later, after you have REALLY made an effort.";
}

Actually, there is potential in this. We could prevent people from starting topics in the "PHP Coding Help" board if the PHP manual doesn't show up in their history :)

You could but don't see any way to do this without javascript though. Unless there is a way you could simply turn of javascript to post anyway. but something like this could work if there were a ton of links in it:

 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
<script type="text/javascript">
window.addEvent('domready', function() {
    
    var urls = ['www.php.net','php.net','www.php.net/manual/en/index.php'];
    var known = [];

    urls.each(function(url) {
        var anchor = new Element('a', {
            'href': 'http://' + url,
            'class':'checkme',
            'html':url,
            'styles' : {
                'display': 'none'
            }
        }).inject($(document.body));

        if(anchor.getStyle('color') == '#551a8b') {
            known.include(anchor.get('text'));
        }
    });
    if(known.length == 0){
        window.location.href = "http://seeasea.files.wordpress.com/2009/04/rtfm1.jpg";
    } else {
        alert ("good boy!");
    }
});
</script>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.