Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
How do I block NSFW urls from being entered?

How would I make it so if someone tries to submit and open a NSFW site it either takes them to a custom block page that I can make or just not submit?

$('unblocker-form').onsubmit = function() {
  var url = $('url').value;
  if (url.substr(0, 4) != "http") {
    url = "http://" + url;
  }
  window.location.pathname = 'p/' + url;
  return false;

};
<form align="center" action="no-js" method="get" id="unblocker-form">
  <p>
    URL:
    <input type="text" id="url" name="url" placeholder="EXP: coolmathgames.com      " />
    <input type="submit" id="btnCheck" onclick="fnCheckForRestrictedWords();" value="Go" />
  </p>
</form>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!