1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HELP] Prevent <script> </script> function on like page

Discussion in 'General Scripting Chat' started by badassmamma, Aug 28, 2010.

  1. badassmamma

    badassmamma Regular Member

    Joined:
    Sep 15, 2008
    Messages:
    218
    Likes Received:
    87
    please delete
     
    Last edited: Aug 28, 2010
  2. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,490
    Get a better script
     
  3. badassmamma

    badassmamma Regular Member

    Joined:
    Sep 15, 2008
    Messages:
    218
    Likes Received:
    87
    Lol well yeah.... I have hundreds of thousands of likes already and don't want to risk that. Can anyone pm me or shed some light on how i can simply prevent <script></script> Execution from running in my index.php page? Thats all i need.
     
  4. Samsonette

    Samsonette Newbie

    Joined:
    Jan 19, 2009
    Messages:
    23
    Likes Received:
    632
    Gender:
    Female
    Occupation:
    retired - but extremely active ;-)
    Location:
    ô¿Ô I see all I shouldn't
    Sorry, only know Perl and not PHP, but you have to hardcode a solution into your index.php.

    How to strip tags you can read a lot here:

    Code:
    http://php.net/manual/en/function.strip-tags.php
    Hope it helps you on your way
     
  5. badassmamma

    badassmamma Regular Member

    Joined:
    Sep 15, 2008
    Messages:
    218
    Likes Received:
    87
    Thanks also for now i just removed my like submit button on my index and will be getting a new script and leaving the old with the viral likes :)