Jump to content

Alright guys confession time


RichardRotterdam

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.