ertaboy356b
Old School Gamer
- Reaction score
- 86
Hi, I'm currently using AJAX through JQUERY.
Can someone please show me how to protect your post and get query from spams?
like for example, I have this code:
then can just modify this code like this to create a spam:
so basically, it will spam the site with unnecessary data and will somehow lag the server. How do I avoid this kind of spam??
How do I authenticate that the requests are from my site??
Can someone please show me how to protect your post and get query from spams?
like for example, I have this code:
Code:
$.post("xml.php",{var:var},function(xml) {
$("name",xml).text();
alert("name");
})l
then can just modify this code like this to create a spam:
Code:
function evilSpam ()
$.post("http://www.mysite.com/xml.php",{var:"spam spam spam"},function(xml) {
$("name",xml).text();
alert("name");
});
}
setTimeout(evilSpam(),100);
so basically, it will spam the site with unnecessary data and will somehow lag the server. How do I avoid this kind of spam??
How do I authenticate that the requests are from my site??