Hello
I'm looking for a way to restrict domain submission to european only (.de, .it, .es, .ro etc). Can somebody tell me how to do that?
Thanks
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| how to restrict domain submission? |
| |||
| come on, guys, nobody can tell me how to do that? At least a hint...
|
| ||||
| Quote:
block a country, block by ip address, deny access by country
__________________ www.geordies.net |
| The Following User Says Thank You to magpie2419 For This Useful Post: | ||
| ||||
| Quote:
|
| |||
|
thanks, but i would like to restrict domains instead of users. I think i should manage $url variable from submit.php file, but i don't know how
|
| |||
| Quote:
Code: $ext = substr(strrchr($url, "."), 1);
if ($ext == 'de' || $ext == 'it' || $ext == 'eu') { //add more extensions here
$url == "";
} else {
echo "Your domain doesn't belong to European countries";
return;
}
|
| |||
|
Unfortunately, it doesn't work ok. If url doesn't end with desired extension, i get error (for example, an url like this: http://www.story.eu/great-stories cannot be submited) I'm still looking for help.. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ICANN approves domain name big bang | chuckroast | Off-topic | 2 | 06-26-2008 11:30 PM |
| root domain issue | johnchandler | General Help | 2 | 02-22-2008 11:30 PM |
| Problem with new domain now with google | pacek | General Help | 1 | 01-31-2008 06:07 PM |
| Stylesheet not pulling in add on domain | elindbloom | General Help | 0 | 10-10-2007 02:14 PM |





Linear Mode

