3 ms·
MySpamSite.com?queryParm=.gov
by ALittleLight 5y ago
MySpamSite.com?queryParm=.gov
- orheep 5y agoOn the domain only.
- colejohnson66 5y agoI'm sure the check (if implemented) wouldn't be a naive regex that would fail that easily
- ALittleLight 5y agoThe example regex would fail on that url. More generally I was trying to suggest with an example that filtering credible information with a regex is error prone.
- l33t2328 5y agoYes, and the example was naive. It’s trivial to make regex identify TLDs.
- ALittleLight 5y agoYeah, but that doesn't work either. There are gov sites that have incorrect information, out of date information, partisan ideas and rhetoric, or there may exist, now or in the future, a .gov website where people could upload and share content.
- afavour 5y agoIf you were going to check for this and didn’t immediately reach for location.host rather than location.href then it might be time to read some API docs.